(PHP 3, PHP 4 )
int pg_numrows (int result_id)
int pg_numrows
Pg_numrows() will return the number of rows in a PostgreSQL result. The argument is a valid result identifier returned by pg_exec(). This function will return -1 on error.
See also pg_numfields() and pg_cmdtuples().