pg_fieldnum

(PHP3 , PHP4 )

pg_fieldnum -- Returns the field number of the named field

Description

int pg_fieldnum (int result_id, string field_name)

Pg_fieldnum() will return the number of the column slot that corresponds to the named field in the given PosgreSQL result identifier. Field numbering starts at 0. This function will return -1 on error.


Hosted by Tonec Inc.