mysql_list_fields(database_name,table_name[,link_identifier])

Description: Lists MySQL columns in a given table.

Retrieves information about table table_name in database database_name and returns a result pointer. This pointer (denoted in this appendix by result) can then be passed to other functions to extract information on column names, lengths, types, and flags.

$f = mysql_list_fields ("some_db", "some_table");

See also: mysql_field_flags(), mysql_field_len(), mysql_field_name(), mysql_field_type()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition 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.