mysql_list_fields(db_name, table_name[, link_id])
This function returns a result set with information about all the fields in the specified table (table_name) in the specified database (db_name) using the default or specified (link_id) MySQL connection. The result set produced may be used with mysql_field_flags, mysql_field_len, mysql_field_name, and mysql_field_type.
The function name mysql_listfields may also be used, but is deprecated.