pg_connect

(PHP 4, PHP 5, PHP 7) Open a PostgreSQL connection resource pg_connect ( string $connection_string [, int $connect_type ] ) pg_connect() opens a connection to a PostgreSQL database specified by the connection_string. If a second call is made to pg_connect() with the same connection_string as an existing connection, the existing connection will be returned unless you pass PGSQL_CONNECT_FORCE_NEW as connect_type. The old s

pg_connect_poll

(PHP 5 >= 5.6.0, PHP 7) Poll the status of an in-progress asynchronous PostgreSQL connection attempt. int pg_connect_poll ([ resource $connection ] ) pg_connect_poll() polls the status of a PostgreSQL connection created by calling pg_connect() with the PGSQL_CONNECT_ASYNC option. Parameters: connection PostgreSQL database connection resource. Retu

pg_close

(PHP 4, PHP 5, PHP 7) Closes a PostgreSQL connection bool pg_close ([ resource $connection ] ) pg_close() closes the non-persistent connection to a PostgreSQL database associated with the given connection resource. Note: Using pg_close() is not usually necessary, as non-persistent open connections are automatically closed at the end of the script. If there is open large object resource on the connection, do not close

pg_client_encoding

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Gets the client encoding string pg_client_encoding ([ resource $connection ] ) PostgreSQL supports automatic character set conversion between server and client for certain character sets. pg_client_encoding() returns the client encoding as a string. The returned string will be one of the standard PostgreSQL encoding identifiers. Note: This function requires PHP 4.0.3 or higher and Post

pg_cancel_query

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Cancel an asynchronous query bool pg_cancel_query ( resource $connection ) pg_cancel_query() cancels an asynchronous query sent with pg_send_query(), pg_send_query_params() or pg_send_execute(). You cannot cancel a query executed using pg_query(). Parameters: connection PostgreSQL database connection resource. Return

pg_affected_rows

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns number of affected records (tuples) int pg_affected_rows ( resource $result ) pg_affected_rows() returns the number of tuples (instances/records/rows) affected by INSERT, UPDATE, and DELETE queries. Since PostgreSQL 9.0 and above, the server returns the number of SELECTed rows. Older PostgreSQL return 0 for SELECT. Note: This function used to be called pg_cmdtuples().

px_update_record

(PECL paradox >= 1.4.0) Updates record in paradox database bool px_update_record ( resource $pxdoc, array $data, int $num ) Updates an exiting record in the database. The record starts at 0. The record data is passed as an array of field values. The elements in the array must correspond to the fields in the database. If the array has less elements than fields in the database, the remaining fields will be set to null.

px_timestamp2string

(PECL paradox >= 1.4.0) Converts the timestamp into a string. string px_timestamp2string ( resource $pxdoc, float $value, string $format ) Turns a timestamp as it stored in the paradox file into human readable format. Paradox timestamps are the number of miliseconds since 0001-01-02. This function is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the following

px_set_value

(PECL paradox >= 1.1.0) Sets a value bool px_set_value ( resource $pxdoc, string $name, float $value ) Sets various values. Parameters: pxdoc Resource identifier of the paradox database as returned by px_new(). name name can be one of the following. value name can be one of the following.

px_set_targetencoding

(PECL paradox >= 1.0.0) Sets the encoding for character fields (deprecated) bool px_set_targetencoding ( resource $pxdoc, string $encoding ) Set the encoding for data retrieved from a character field. All character fields will be recoded to the encoding set by this function. If the encoding is not set, the character data will be returned in the DOS code page encoding as specified in the database file. The encoding can be