From 160a7021b484f735ce59d3ec80e5c851936eb931 Mon Sep 17 00:00:00 2001 From: Shadow Date: Wed, 2 Mar 2016 08:24:50 +0200 Subject: [PATCH] fix --- install/include/database.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/install/include/database.php b/install/include/database.php index a0246019..cc7ce341 100644 --- a/install/include/database.php +++ b/install/include/database.php @@ -8,25 +8,17 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////// include("constant.php"); - class MYSQLi_DB { - var $connection; - function MYSQLi_DB() { - $this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error()); - mysqli_select_db(SQL_DB, $this->connection) or die(mysql_error()); + $this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error()); } function query($query) { return mysqli_query($this->connection, $query); } - }; - class MYSQL_DB { - var $connection; - function MYSQL_DB() { $this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error()); mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());