int mysql_num_fields ( resource $result )
Retrieves the number of fields from a query.
Returns the number of fields in the result set resource on success or FALSE on failure.