mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-30 09:34:28 +00:00
fix: mysqli_error needs MySQLi connection as parameter
This commit is contained in:
@@ -11,7 +11,7 @@ include("constant.php");
|
||||
class MYSQLi_DB {
|
||||
var $connection;
|
||||
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, SQL_DB) or die(mysqli_error($database->dblink));
|
||||
}
|
||||
function query($query) {
|
||||
return mysqli_query($this->connection, $query);
|
||||
|
||||
Reference in New Issue
Block a user