PHP Manual
Prev |  | Next

# mysql_num_fields

mysql_num_fields -- Get number of fields in result

## Description

`int mysql_num_fields`(int result);

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

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

For downward compatibility mysql_numfields() can also be used.

Prev | Home | Next
mysql_list_tables | Up | mysql_num_rows