词条 | pg_connection_status |
释义 | pg_connection_statu(PHP 4 >= 4.2.0) pg_connection_status -- 获得连接状态 说明int pg_connection_status ( resource connection) pg_connection_status() 返回一个连接的状态。可能的状态为 PGSQL_CONNECTION_OK 和 PGSQL_CONNECTION_BAD。 pg_connection_status() 例子1<?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect"); $stat = pg_connection_status($dbconn); echo 'connection_status: '.$stat; ?> pg_connection_status() 例子2<?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect"); $stat = pg_connection_status($dbconn); echo 'connection_status: '.$stat; ?> |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。