function:mysql_fetch_lengths ( result );
return type:array
content:ใช้คืนค่า ขนาดของข้อมูล ของ result ในแถวที่ชี้อยู่ แล้วเก็บไว้ที่ array และเลื่อนไปตัวชี้ชี้ไปยังตำแหน่งถ้ดไป
โดย array ที่ได้มี key คือคอลัมน์ที่ โดยจะคืนค่า false ถ้าเกิดความผิดพลาดขึ้น
example:$conn = mysql_connect ( "localhost", "root", "1234" );
$sql = "SELECT * FROM employee INNER JOIN position ON employee.position_id = position.id";
$result = mysql_db_query ( "dblabcode", $sql, $conn );
while ( $record = mysql_fetch_lengths ( $result ) )
{
echo $record[0] . " " . $record[1];
}