resource mysql_list_fields (string database_name, string table_name [, resource
link_identifier])
mysql_list_fields() retrieves information about the given tablename. Arguments are the database name and the table name. A result pointer is returned which can be used with mysql_field_flags(), mysql_field_len(), mysql_field_name(), and mysql_field_type().
Example 1. mysql_list_fields() example
|
The above example would produce the following output:
field1
field2
field3
...
|
For downward compatibility mysql_listfields() can also be used.