Note: This manual is provided for your convenience only - this is not the official source and may not be 100% up to date.

odbc_field_num

odbc_field_num

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

odbc_field_num -- Return column number

Description

int odbc_field_num ( resource result_id, string field_name )

odbc_field_num() will return the number of the column slot that corresponds to the named field in the given ODBC result identifier. Field numbering starts at 1. FALSE is returned on error.