pg_Connect

Syntax

int pg_Connect(string host, string port, string options, string tty, string dbname);

Popis

Príkaz jazyka PHP
pg_Connect - opens a connection

Returns a connection index on success, or false if the connection could not be made. Opens a connection to a PostgreSQL database. Each of the arguments should be a quoted string, including the port number. The options and tty arguments are optional and can be left out. This function returns a connection index that is needed by other PostgreSQL functions. You can have multiple connections open at once.

A connection can also established with the following command:
$conn = pg_connect("dbname=marliese port=5432");
Other parameters besides dbname and port are host, tty and options.

Pozri aj

pg_pConnect