diff --git a/website/class/config.php b/website/class/config.php index bb004a2a..14721fd0 100644 --- a/website/class/config.php +++ b/website/class/config.php @@ -1,5 +1,6 @@ PDO = new PDO("mysql:host=".DB_HOST."; dbname=".DB_NAME, DB_USER, DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); + $this->PDO = new PDO("mysql:host=".DB_HOST."; port=".DB_PORT."; dbname=".DB_NAME, DB_USER, DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); } public function select($query, $bindings = []) { $STH = $this->PDO->prepare($query);