| mysql_num_fields() | ใช้นับจำนวนคอลัมน์ทั้งหมดของ result |
|---|
function:mysql_num_fields ( result );
return type:int
content:ใช้นับจำนวนคอลัมน์ทั้งหมดของ result
example:$conn = mysql_connect ( "localhost", "root", "1234" ); $sql = "SELECT * FROM employee"; $result = mysql_db_query ( "dblabcode", $sql, $conn ); echo "Total Field : " . mysql_num_fields ( $result );