/*
*pgsql類
*/
class pgdb {
public $pdo;
public static $PDOInstance;
public $config; ;
public $ limit;
公用$訂單;
public $ where;
public $ few;
const login = 7;
const user = 1; const group = 2; const usergroup = 3;
const log = 6; ;
const ERROR = 2;
const INFO = 0;
public function __construct() {
if (!self::$P.Injst-片json_decode(file_get_contents("./config) /db. json"), true);
$config = $this->config;
$host = $config["data__g"]["_ $config["data_base"][ " db_name"] ;
$port = $config["data_base"]["db_port"];
$password = $config["data_base"] [ "db_pwd" ];
if ($config["data_base"]["db_host"] != 'localhost') {
}
嘗試
{
PDO("pgsql:"
. $hosturl
. "port=$port;"
. "dbname=$dbname;"
, $使用者名稱
,援(
} )
) {
header("內容型: text/html; charset=utf-8");
$error = "資料庫初始化失敗,已強制中斷連結。
提取到的異常堆疊如下:
" . print_r($ex, true) . "