pg_affected_rows PHP 4.1.0

int pg_affected_rows(resource result)

 

Returns the number of affected tuples.

pg_cancel_query PHP 4.1.0

bool pg_cancel_query(resource connection)

 

Cancels request.

pg_client_encoding PHP 3 CVS Only

string pg_client_encoding([resource connection])

 

Gets the current client encoding.

pg_close PHP 3.0

bool pg_close([resource connection])

 

Closes a PostgreSQL connection.

pg_connect PHP 3.0

resource pg_connect([string connection_string] | [string host, string port[, string options[, string tty,]] string database)

 

Opens a PostgreSQL connection.

pg_connection_busy PHP 4.1.0

bool pg_connection_busy(resource connection)

 

Gets whether connection is busy or not.

pg_connection_reset PHP 4.1.0

bool pg_connection_reset(resource connection)

 

Resets connection (reconnects).

pg_connection_status PHP 4.1.0

int pg_connection_status(resource connnection)

 

Gets connection status.

pg_convert PHP 4.3.0

array pg_convert(resource db, string table, array values[, int options])

 

Checks and converts values for PostgreSQL SQL statement.

pg_copy_from PHP 4.1.0

bool pg_copy_from(int connection, string table_name, array rows[, string delimiter[, string null_as]])

 

Copies table from array.

pg_copy_to PHP 4.1.0

array pg_copy_to(int connection, string table_name[, string delimiter[, string null_as]])

 

Copies table to array.

pg_dbname PHP 3.0

string pg_dbname([resource connection])

 

Gets the database name.

pg_delete PHP 4.3.0

bool pg_delete(resource db, string table, array ids[, int options])

 

Deletes records with values in ids.

pg_end_copy PHP 4.0.3

bool pg_end_copy([resource connection])

 

Completes the a copy command by syncing with the backend.

pg_escape_bytea PHP 4.1.0

string pg_escape_bytea(string data)

 

Escapes a string for the bytea type.

pg_escape_string PHP 4.1.0

string pg_escape_string(string data)

 

Escapes a string for text/char type.

pg_fetch_all PHP 4.3.0

array pg_fetch_all(resource result)

 

Fetches all rows into array.

pg_fetch_array PHP 3.0.1

array pg_fetch_array(resource result[, int row[, int result_type]])

 

Fetches a row as an array.

pg_fetch_object PHP 3.0.1

object pg_fetch_object(resource result[, int row[, int result_type]])

 

Fetches a row as an object.

pg_fetch_result PHP 4.1.0

mixed pg_fetch_result(resource result, [int row_number,] mixed field_name)

 

Returns values from a result identifier.

pg_fetch_row PHP 3.0.1

array pg_fetch_row(resource result[, int row[, int result_type]])

 

Gets a row as an enumerated array.

pg_field_is_null PHP 4.1.0

int pg_field_is_null(resource result, [int row,] mixed field_name_or_number)

 

Tests if a field is NULL.

pg_field_name PHP 4.1.0

string pg_field_name(resource result, int field_number)

 

Returns the name of the field.

pg_field_num PHP 4.1.0

int pg_field_num(resource result, string field_name)

 

Returns the field number of the named field.

pg_field_prtlen PHP 4.1.0

int pg_field_prtlen(resource result, [int row,] mixed field_name_or_number)

 

Returns the printed length.

pg_field_size PHP 4.1.0

int pg_field_size(resource result, int field_number)

 

Returns the internal size of the field.

pg_field_type PHP 4.1.0

string pg_field_type(resource result, int field_number)

 

Returns the type name for the given field.

pg_free_result PHP 4.1.0

bool pg_free_result(resource result)

 

Frees result memory.

pg_get_result PHP 4.1.0

resource pg_get_result([resource connection])

 

Gets asynchronous query result.

pg_host PHP 3.0

string pg_host([resource connection])

 

Returns the hostname associated with the connection.

pg_insert PHP 4.3.0

bool pg_insert(resource db, string table, array values[, int options])

 

Inserts an array of values into table.

pg_last_error PHP 4.1.0

string pg_last_error([resource connection])

 

Gets the error message string.

pg_last_oid PHP 4.1.0

string pg_last_oid(resource result)

 

Returns the last object identifier.

pg_lo_close PHP 4.1.0

bool pg_lo_close(resource large_object)

 

Closes a large object.

pg_lo_create PHP 4.1.0

int pg_lo_create([resource connection])

 

Creates a large object.

pg_lo_export PHP 4.1.0

bool pg_lo_export([resource connection, ] int objoid, string filename)

 

Exports a large object directly to filesystem.

pg_lo_import PHP 4.1.0

int pg_lo_import([resource connection, ] string filename)

 

Imports a large object directly from filesystem.

pg_lo_open PHP 4.1.0

resource pg_lo_open([resource connection,] int large_object_oid, string mode)

 

Opens a large object and returns the file descriptor.

pg_lo_read_all PHP 4.1.0

int pg_lo_read_all(resource large_object)

 

Reads a large object and sends it straight to the browser.

pg_lo_read PHP 4.1.0

string pg_lo_read(resource large_object[, int len])

 

Reads a large object.

pg_lo_seek PHP 4.1.0

bool pg_lo_seek(resource large_object, int offset[, int whence])

 

Seeks position of large object.

pg_lo_tell PHP 4.1.0

int pg_lo_tell(resource large_object)

 

Returns current position of large object.

pg_lo_write PHP 4.1.0

int pg_lo_write(resource large_object, string buf[, int len])

 

Writes a large object.

pg_num_fields PHP 4.1.0

int pg_num_fields(resource result)

 

Returns the number of fields in the result.

pg_num_rows PHP 4.1.0

int pg_num_rows(resource result)

 

Returns the number of rows in the result.

pg_options PHP 3.0

string pg_options([resource connection])

 

Gets the options associated with the connection.

pg_pconnect PHP 3.0

resource pg_pconnect([string connection_string] | [string host, string port[, string options[, string tty,]] string database)

 

Opens a persistent PostgreSQL connection.

pg_port PHP 3.0

int pg_port([resource connection])

 

Returns the port number associated with the connection.

pg_put_line PHP 4.0.3

bool pg_put_line([resource connection,] string query)

 

Sends null-terminated string to backend server.

pg_query PHP 4.1.0

resource pg_query([resource connection,] string query)

 

Executes a query.

pg_result_error PHP 4.1.0

string pg_result_error(resource result)

 

Gets error message associated with result.

pg_result_status PHP 4.1.0

int pg_result_status(resource result[, long result_type])

 

Gets status of query result.

pg_select PHP 4.3.0

array pg_select(resource db, string table, array ids[, int options])

 

Selects records that have values in ids.

pg_send_query PHP 4.1.0

bool pg_send_query(resource connection, string qeury)

 

Sends asynchronous query.

pg_set_client_encoding PHP 3 CVS Only

int pg_set_client_encoding([resource connection,] string encoding)

 

Sets client encoding.

pg_trace PHP 4.0.1

bool pg_trace(string filename[, string mode[, resource connection]])

 

Enables tracing a PostgreSQL connection.

pg_tty PHP 3.0

string pg_tty([resource connection])

 

Returns the tty name associated with the connection.

pg_untrace PHP 4.0.1

bool pg_untrace([resource connection])

 

Disables tracing of a PostgreSQL connection.

pg_update PHP 4.3.0

bool pg_update(resource db, string table, array fields, array ids[, int options])

 

Updates table using values in fields and ids.