1
0
Fork 0
This commit is contained in:
Airikr 2024-07-24 20:19:31 +02:00
parent 29d1538d68
commit 07f564ada9

View file

@ -40,16 +40,17 @@
if(!empty($database_host) AND !empty($database_port) AND !empty($database_name) AND !empty($database_user) AND !empty($database_pass)) {
try {
try {
$sql = null;
if($sql === null) {
$sql = new PDO('pgsql:host='.$database_host.';port='.$database_port.';dbname='.$database_name.';user='.$database_user.';password='.$database_pass);
$sql->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
}
catch(PDOException $e) {
echo $e;
exit;
}
catch(PDOException $e) {
echo $e;
exit;
}
?>