mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 15:21:01 +00:00
Update database.php
This commit is contained in:
@@ -27,7 +27,7 @@ class MYSQL_DB {
|
|||||||
var $connection;
|
var $connection;
|
||||||
|
|
||||||
function MYSQL_DB() {
|
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());
|
mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,4 +59,4 @@ if(DB_TYPE) {
|
|||||||
else {
|
else {
|
||||||
$database = new MYSQL_DB;
|
$database = new MYSQL_DB;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user