object mysql_fetch_field(mysql result result_handle, [int field_offset]) 
result_handle Result handle returned by mysql_list_fields(), mysql_db_query(), or mysql_query()
field_offset Field offset to use

Gets the column information for a field in a result handle.


Object containing column meta-information; FALSE on error


mysql_fetch_field() retrieves the column information for a field in a query. If you specify an offset to mysql_fetch_field(), the column properties for that field are returned. If you don’t specify an offset, the data for the next field in order will be returned.

The column information is returned as an object containing one or more of the properties from the following table. (Note: ...

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.