Update config.php

This commit is contained in:
nolanwhy 2023-02-04 22:55:39 +01:00
parent aaa987f909
commit 8d423e4baa
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ $sql = [
try {
$con = new PDO("mysql:dbname=".$sql["dbname"].";host=".$sql["host"].";port=".$sql["port"], $sql["user"], $sql["pass"]);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
unset($sql);
} catch (PDOException $e) {
die("Connection failed: " . $e->getMessage());
}