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/weaponstats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/includes/weaponstats.php') diff --git a/html/includes/weaponstats.php b/html/includes/weaponstats.php index ff97685..ddfd162 100644 --- a/html/includes/weaponstats.php +++ b/html/includes/weaponstats.php @@ -55,8 +55,8 @@ uts_weaponstats AS w w.weapon"; } - $q_weapons = mysql_query($sql_weapons) or die(mysql_error()); - while ($r_weapons = zero_out(mysql_fetch_array($q_weapons))) { + $q_weapons = mysqli_query($GLOBALS["___mysqli_link"], $sql_weapons) or die(mysqli_error($GLOBALS["___mysqli_link"])); + while ($r_weapons = zero_out(mysqli_fetch_array($q_weapons))) { $weaponid = intval($r_weapons['weaponid']); $playerid = intval($r_weapons['playerid']); -- cgit