mysql_field_name(result_id, field_position)
This function returns the name of the specified field (field_position) in a result set (result_id).
The function name mysql_fieldname may also be used, but is deprecated.