fix: a lot of MySQL calls in templates replaced by MySQLi ones

This commit is contained in:
Martin Ambrus
2017-08-28 23:56:59 +02:00
parent 814a904343
commit 92b9a7b043
75 changed files with 427 additions and 427 deletions
+4 -4
View File
@@ -2,12 +2,12 @@
$count="0";
include("GameEngine/Config.php");
$connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
mysql_select_db(SQL_DB, $connection) or die(mysql_error());
$connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error());
mysqli_select_db(SQL_DB, $connection) or die(mysqli_error());
$q = "SELECT * FROM ".TB_PREFIX."movement where endtime < ".time()." and proc = 0";
$result = mysql_query($q, $connection);
$count=mysql_num_rows($result);
$result = mysqli_query($GLOBALS["link"], $q, $connection);
$count=mysqli_num_rows($result);
?>