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/includes/teamstats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/includes/teamstats.php') diff --git a/html/includes/teamstats.php b/html/includes/teamstats.php index d0b1b58..20b7cd6 100755 --- a/html/includes/teamstats.php +++ b/html/includes/teamstats.php @@ -27,11 +27,11 @@ function teamstats($mid, $title, $extra = NULL, $extratitle = NULL, $order = 'ga $sql_players = "SELECT pi.name, pi.banned, p.pid, p.team, p.country, p.gametime, p.gamescore, p.frags, p.deaths, p.suicides, p.teamkills, p.eff, p.accuracy, p.ttl, p.rank".(($extra) ? ', p.'.$extra.' AS '.$extra : '')." FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $mid ORDER BY".(($teams) ? ' team ASC,' : '')." $order"; - $q_players = mysql_query($sql_players) or die(mysql_error()); + $q_players = mysqli_query($GLOBALS["___mysqli_link"], $sql_players) or die(mysqli_error($GLOBALS["___mysqli_link"])); $header = true; teamstats_init_totals($totals, $num); - while ($r_players = zero_out(mysql_fetch_array($q_players))) { + while ($r_players = zero_out(mysqli_fetch_array($q_players))) { $r_players['dom_cp'] = $r_players['gamescore'] - $r_players['frags']; $r_players['team'] = intval($r_players['team']); -- cgit