(PHP3 , PHP4 )
int pg_numfields (int result_id)
int pg_numfields
Pg_numfields() will return the number of fields (columns) in a PostgreSQL result. The argument is a valid result identifier returned by pg_exec(). This function will return -1 on error.