odbc_field_num

Return column number

Description

intfalse odbc_field_num(resource $statement, string $field)

Gets the number of the column slot that corresponds to the named field in the given result identifier.

Parameters

statement

The result identifier.

field

The field name.

Return Values

Returns the field number as a integer, or false on error. Field numbering starts at 1.