php man page for pg_connection_status

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 status

SYNOPSIS
int pg_connection_status (resource $connection)
DESCRIPTION
pg_connection_status(3) returns the status of the specified $connection.
PARAMETERS
o $connection - PostgreSQL database connection resource.
RETURN VALUES
PGSQL_CONNECTION_OK or PGSQL_CONNECTION_BAD.
EXAMPLES
Example #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 ALSO
pg_connection_busy(3). PHP Documentation Group PG_CONNECTION_STATUS(3)
Related Man Pages
pg_close(3) - php
pg_last_error(3) - php
pg_result_error_field(3) - php
pg_set_error_verbosity(3) - php
pg_version(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update