| mysql_numfields() | ใช้นับจำนวนคอลัมน์ทั้งหมดของ result |
|---|
function:mysql_numfields ( 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_numfields ( $result );