mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 15:17:13 +00:00
update
This commit is contained in:
@@ -14,7 +14,8 @@ class MYSQLi_DB {
|
|||||||
var $connection;
|
var $connection;
|
||||||
|
|
||||||
function MYSQLi_DB() {
|
function MYSQLi_DB() {
|
||||||
$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error());
|
$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());
|
||||||
}
|
}
|
||||||
function query($query) {
|
function query($query) {
|
||||||
return mysqli_query($this->connection, $query);
|
return mysqli_query($this->connection, $query);
|
||||||
@@ -27,7 +28,7 @@ class MYSQL_DB {
|
|||||||
var $connection;
|
var $connection;
|
||||||
|
|
||||||
function MYSQL_DB() {
|
function MYSQL_DB() {
|
||||||
$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
|
$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());
|
mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user