pg_dbname

(PHP 3, PHP 4 >= 4.0b1)

pg_dbname -- Get the database name

Description

string pg_dbname (int connection)

Returns the name of the database that the given PostgreSQL connection index is connected to, or FALSE if connection is not a valid connection index.