pg_num_fields
(PHP 4 >= 4.2.0)
pg_num_fields -- Returns the number of fields
Description
int pg_num_fields ( resource result)
pg_num_fields() returns the number of fields (columns) in
a PostgreSQL result. The argument is a result resource returned
by pg_query(). This function will return -1 on error.
Note: This function used to be called pg_numfields().
See also pg_num_rows() and pg_affected_rows().
pg_num_rows
(PHP 4 >= 4.2.0)
pg_num_rows -- Returns the number of rows
Description
int pg_num_rows ( resource result)
pg_num_rows() will return the number of rows in a PostgreSQL
result resource. result is a query result resource returned
by pg_query(). This function will return -1 on error.
Note: Use pg_affected_rows() to get number of rows affected
by INSERT, UPDATE and DELETE query.
Note: This function used to be called pg_numrows().
See also pg_num_fields() and pg_affected_rows().
|