| mysql_result() | ใช้คืนค่า ค่าข้อมูล ในแถวและคอลัมน์ที่กำหนด ของ result |
|---|
function:mysql_result ( result, row, column );
return type:string
content:ใช้คืนค่า ค่าข้อมูล ในแถวและคอลัมน์ที่กำหนด ของ result โดยจะคืนค่า 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 ); echo mysql_result ( $result, 0, 0 );