pg_field_type

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the type name for the corresponding field number string pg_field_type ( resource $result, int $field_number ) pg_field_type() returns a string containing the base type name of the given field_number in the given PostgreSQL result resource. Note: If the field uses a PostgreSQL domain (rather than a basic type), it is the name of the domain's underlying type that is returned, rat

pg_field_type_oid

(PHP 5 >= 5.1.0, PHP 7) Returns the type ID (OID) for the corresponding field number int pg_field_type_oid ( resource $result, int $field_number ) pg_field_type_oid() returns an integer containing the OID of the base type of the given field_number in the given PostgreSQL result resource. You can get more information about the field type by querying PostgreSQL's pg_type system table using the OID obtained with this fun

pg_field_table

(PHP 5 >= 5.2.0, PHP 7) Returns the name or oid of the tables field mixed pg_field_table ( resource $result, int $field_number [, bool $oid_only = false ] ) pg_field_table() returns the name of the table that field belongs to, or the table's oid if oid_only is TRUE. Parameters: result PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_ex

pg_field_size

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the internal storage size of the named field int pg_field_size ( resource $result, int $field_number ) pg_field_size() returns the internal storage size (in bytes) of the field number in the given PostgreSQL result. Note: This function used to be called pg_fieldsize(). Parameters: result PostgreSQL query result resource, re

pg_field_prtlen

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the printed length int pg_field_prtlen ( resource $result, int $row_number, mixed $field_name_or_number ) int pg_field_prtlen ( resource $result , mixed $field_name_or_number ) pg_field_prtlen() returns the actual printed length (number of characters) of a specific value in a PostgreSQL result. Row numbering starts at 0. This function will return FALSE on an error. field_name_or_n

pg_field_num

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the field number of the named field int pg_field_num ( resource $result, string $field_name ) pg_field_num() will return the number of the field number that corresponds to the field_name in the given PostgreSQL result resource. Note: This function used to be called pg_fieldnum(). Parameters: result PostgreSQL query result res

pg_field_name

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the name of a field string pg_field_name ( resource $result, int $field_number ) pg_field_name() returns the name of the field occupying the given field_number in the given PostgreSQL result resource. Field numbering starts from 0. Note: This function used to be called pg_fieldname(). Parameters: result PostgreSQL query resul

pg_field_is_null

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Test if a field is SQL NULL int pg_field_is_null ( resource $result, int $row, mixed $field ) int pg_field_is_null ( resource $result , mixed $field ) pg_field_is_null() tests if a field in a PostgreSQL result resource is SQL NULL or not. Note: This function used to be called pg_fieldisnull(). Parameters: result PostgreSQL query res

pg_fetch_row

(PHP 4, PHP 5, PHP 7) Get a row as an enumerated array array pg_fetch_row ( resource $result [, int $row ] ) pg_fetch_row() fetches one row of data from the result associated with the specified result resource. Note: This function sets NULL fields to the PHP NULL value. Parameters: result PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_ex

pg_fetch_result

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns values from a result resource string pg_fetch_result ( resource $result, int $row, mixed $field ) string pg_fetch_result ( resource $result , mixed $field ) pg_fetch_result() returns the value of a particular row and field (column) in a PostgreSQL result resource. Note: This function used to be called pg_result(). Parameters: result