mysql_num_fields

PHP 4, PHP 5
mysql_num_fields - Get number of fields in result
Manual
Code Examples

mysql_num_fields( resource$result ): int|false

Retrieves the number of fields from a query.

Parameters

result

The result resource that is being evaluated. This result comes from a call to mysql_query.

Return Values

Returns the number of fields in the result set resource on success or false on failure.

Notes

Note:

For backward compatibility, the following deprecated alias may be used: mysql_numfields

Related Functions

Example of mysql_num_fields

Show all examples for mysql_num_fields

PHP Version: