From 7e5c50603cbe1307d68a2b5b8ee14409e15a9dcb Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Sun, 14 Jan 2018 20:08:50 +0100 Subject: Update to mysqli --- html/pages/admin/recalcranking.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html/pages/admin/recalcranking.php') diff --git a/html/pages/admin/recalcranking.php b/html/pages/admin/recalcranking.php index 0065439..236687c 100644 --- a/html/pages/admin/recalcranking.php +++ b/html/pages/admin/recalcranking.php @@ -30,7 +30,7 @@ echo'
echo''; - mysql_query("TRUNCATE uts_rank") or die(mysql_error()); + mysqli_query($GLOBALS["___mysqli_link"], "TRUNCATE uts_rank") or die(mysqli_error($GLOBALS["___mysqli_link"])); echo''; @@ -39,7 +39,7 @@ echo''; echo' ORDER BY p.matchid ASC, p.playerid ASC"); $i = 0; - while ($r_pm = mysql_fetch_array($q_pm)) { + while ($r_pm = mysqli_fetch_array($q_pm)) { $i++; if ($i%50 == 0) { echo '. '; -- cgit
Deleting rankingsDone
Recalculating Rankings:'; $playerbanned = false; - $q_pm = mysql_query( " SELECT p.id, + $q_pm = mysqli_query($GLOBALS["___mysqli_link"], " SELECT p.id, p.matchid, p.pid, p.gid, @@ -53,7 +53,7 @@ echo'