mysql_field_name

(PHP3 , PHP4 )

mysql_field_name --  Get the name of the specified field in a result

Description

string mysql_field_name (int result, int field_index)

mysql_field_name() returns the name of the specified field. Arguments to the function is the result identifier and the field index, ie. mysql_field_name($result,2);

Will return the name of the second field in the result associated with the result identifier.

For downwards compatibility mysql_fieldname() can also be used.