odbc_field_num

odbc_field_num -- return column number

Description

int odbc_fieldnum(int 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.