Query: pg_connection_status
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PG_CONNECTION_STATUS(3) PG_CONNECTION_STATUS(3) pg_connection_status - Get connection statusSYNOPSISint pg_connection_status (resource $connection)DESCRIPTIONpg_connection_status(3) returns the status of the specified $connection.PARAMETERSo $connection - PostgreSQL database connection resource.RETURN VALUESPGSQL_CONNECTION_OK or PGSQL_CONNECTION_BAD.EXAMPLESExample #1 pg_connection_status(3) example <?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect"); $stat = pg_connection_status($dbconn); if ($stat === PGSQL_CONNECTION_OK) { echo 'Connection status ok'; } else { echo 'Connection status bad'; } ?>SEE ALSOpg_connection_busy(3). PHP Documentation Group PG_CONNECTION_STATUS(3)
Related Man Pages |
---|
pg_escape_string(3) - php |
pg_send_execute(3) - php |
pg_result_error_field(3) - php |
pg_send_prepare(3) - php |
pg_version(3) - php |