pg_Connect
打開 PostgreSQL 服務器連接。
語法: int pg_connect(string [host], string [port], string [options], string [tty], string database);
返回值: 整數
函數種類: 數據庫功能
本函數打開與 PostgreSQL 服務器的連接。參數 host 表服務器名稱。參數 port 為連接埠。參數 options 為選項。參數 tty 為終端機。參數 database 為數據庫名。成功返回連接代號、失敗返回 false 值。
<?
pg_connect("dbname=testdbuser=wilsonpassword=hahaport=5433");
//以下略
?>
pg_pConnect()
整理: 夕垌菪姬 (天地JPLOP)
|