mysql_list_fields

mysql result mysql_list_fields (string database, string table, 
 [mysql link connection]) 
database Database to use
table Table to use
connection Connection handle returned by mysql_connect() or mysql_pconnect()

Fetches information about the fields in a table.

Returns:

MySQL result handle; FALSE on error

Description:

mysql_list_fields() retrieves information about the fields in the specified table and returns a MySQL result handle that can be used with mysql_field_flags(), mysql_field_len(), mysql_field_name(), and mysql_field_type(). If the connection argument is not set, the last connection opened is used by default. If no connection is open, mysql_list_fields() attempts to connect to a MySQL database by calling mysql_connect() ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.