Product Documentation

FairCom SQL for PHP

Previous Topic

Next Topic

ctsql_field_name

Returns the name of the specified field in a result.

Declaration

string ctsql_field_name ( resource queryID , int field_offset )

Description

field_index starts at 0. For example, the index of the third field is 2, the index of the fourth field is 3, etc.

Note: Field names returned by this function are case-sensitive.

Returns

ctsql_field_name() returns the name of the specified field index. queryID must be a valid query identifier and field_index is the numerical offset of the field.

TOCIndex