diff options
author | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-01-14 20:08:50 +0100 |
---|---|---|
committer | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-09-01 11:48:28 +0200 |
commit | 7e5c50603cbe1307d68a2b5b8ee14409e15a9dcb (patch) | |
tree | 0fff0499b4d94f8ed2e13d72bfd97dec51cd283e /html/pages/admin/recalcranking.php | |
parent | 4d21dfcac97fd02c186bb3ce4085275b36e3790e (diff) |
Update to mysqli
Diffstat (limited to 'html/pages/admin/recalcranking.php')
-rw-r--r-- | html/pages/admin/recalcranking.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'<br><table border="0" cellpadding="0" cellspacing="0" width="600"> echo'<tr>
<td class="smheading" align="left" width="200">Deleting rankings</td>';
- 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'<td class="grey" align="left" width="400">Done</td>';
@@ -39,7 +39,7 @@ echo'</tr> <td class="smheading" align="left">Recalculating Rankings:</td>';
echo'<td class="grey" align="left">';
$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'</tr> 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 '. ';
|