odbc_field_num()
odbc_field_num - Return column number
Syntax
int odbc_field_num (
resource $result_id,
string $field_name)
Arguments
- result_id - The result identifier.
- field_name - The field name.
Description
Gets the number of the column slot that corresponds to the named field in the given result identifier.
Version
PHP 4, 5
Return value
Returns the field number as a integer, or FALSE on error. Field numbering starts at 1.