Update database.php

This commit is contained in:
Shadow
2016-03-02 07:50:37 +02:00
parent b80ef13676
commit 248aa1f2a4
+2 -2
View File
@@ -27,7 +27,7 @@ class MYSQL_DB {
var $connection;
function MYSQL_DB() {
$this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
}
@@ -59,4 +59,4 @@ if(DB_TYPE) {
else {
$database = new MYSQL_DB;
}
?>
?>