pg_fetch_result()
pg_fetch_result - Returns values from a result resource
Syntax
string pg_fetch_result (
resource $result,
int $row,
mixed $field,
resource $result,
mixed $field,
resource $result,
int $row,
mixed $field,
resource $result,
mixed $field)
Arguments
- result - PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
- row - Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, next row is fetched.
- field - A string representing the name of the field (column) to fetch, otherwise an int representing the field number to fetch. Fields are numbered from 0 upwards.
- result
- field
- result - PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
- row - Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, next row is fetched.
- field - A string representing the name of the field (column) to fetch, otherwise an int representing the field number to fetch. Fields are numbered from 0 upwards.
- result
- field
Description
pg_fetch_result() returns the value of a particular row and field (column) in a PostgreSQL result resource.
Version
PHP 4.2.0, 5
Return value
Boolean is returned as "t" or "f". All other types, including arrays are returned as strings formatted in the same default PostgreSQL manner that you would see in the psqlprogram. Database NULLvalues are returned as NULL.