PHP Manual
Prev |  | Next

# mysql_field_name

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.

Prev | Home | Next
mysql_fetch_row | Up | mysql_field_seek