summaryrefslogtreecommitdiff
path: root/html/pages/match_info_bt.php
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-01-14 20:08:50 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2018-09-01 11:48:28 +0200
commit7e5c50603cbe1307d68a2b5b8ee14409e15a9dcb (patch)
tree0fff0499b4d94f8ed2e13d72bfd97dec51cd283e /html/pages/match_info_bt.php
parent4d21dfcac97fd02c186bb3ce4085275b36e3790e (diff)
Update to mysqli
Diffstat (limited to 'html/pages/match_info_bt.php')
-rw-r--r--html/pages/match_info_bt.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/html/pages/match_info_bt.php b/html/pages/match_info_bt.php
index 16bee03..81b11fa 100644
--- a/html/pages/match_info_bt.php
+++ b/html/pages/match_info_bt.php
@@ -35,9 +35,9 @@ $sql_msred = "SELECT p.playerid, pi.name, pi.banned, p.country, p.pid, p.gamesco
WHERE p.pid = pi.id AND p.matchid = $mid AND team = 0
GROUP BY p.playerid
ORDER BY e.col1 DESC, (0 + e.col3) ASC, gamescore DESC";
-$q_msred = mysql_query($sql_msred) or die(mysql_error());
+$q_msred = mysqli_query($GLOBALS["___mysqli_link"], $sql_msred) or die(mysqli_error($GLOBALS["___mysqli_link"]));
$i = 0;
-while ($r_msred = zero_out(mysql_fetch_array($q_msred))) {
+while ($r_msred = zero_out(mysqli_fetch_array($q_msred))) {
if (!$r_msred['playerid']) {
$r_msred['playerid'] = 0;
}
@@ -108,9 +108,9 @@ $sql_msblue = "SELECT p.playerid, pi.name, pi.banned, p.country, p.pid, p.gamesc
WHERE p.pid = pi.id AND p.matchid = $mid AND team = 1
GROUP BY p.playerid
ORDER BY e.col1 DESC, (0 + e.col3) ASC, gamescore DESC";
-$q_msblue = mysql_query($sql_msblue) or die(mysql_error());
+$q_msblue = mysqli_query($GLOBALS["___mysqli_link"], $sql_msblue) or die(mysqli_error($GLOBALS["___mysqli_link"]));
$i = 0;
-while ($r_msblue = zero_out(mysql_fetch_array($q_msblue))) {
+while ($r_msblue = zero_out(mysqli_fetch_array($q_msblue))) {
if (!$r_msblue['playerid']) {
$r_msblue['playerid'] = 0;
}