mysql_num_fields

(PHP 3, PHP 4 )

mysql_num_fields -- Get number of fields in result

Description

int mysql_num_fields ( resource result)

mysql_num_fields() returns the number of fields in a result set.

See also: mysql_select_db(), mysql_query(), mysql_fetch_field(), mysql_num_rows().

For downward compatibility mysql_numfields() can also be used. This is deprecated however.