mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-20 02:00:58 +00:00
fix: mysqli_error needs MySQLi connection as parameter
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
$count="0";
|
||||
include("GameEngine/Config.php");
|
||||
|
||||
$connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error());
|
||||
mysqli_select_db(SQL_DB, $connection) or die(mysqli_error());
|
||||
$connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error($database->dblink));
|
||||
mysqli_select_db(SQL_DB, $connection) or die(mysqli_error($database->dblink));
|
||||
|
||||
$q = "SELECT * FROM ".TB_PREFIX."movement where endtime < ".time()." and proc = 0";
|
||||
$result = mysqli_query($GLOBALS["link"], $q, $connection);
|
||||
|
||||
Reference in New Issue
Block a user