summaryrefslogtreecommitdiff
path: root/html/includes/weaponstats.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/includes/weaponstats.php
parent4d21dfcac97fd02c186bb3ce4085275b36e3790e (diff)
Update to mysqli
Diffstat (limited to 'html/includes/weaponstats.php')
-rw-r--r--html/includes/weaponstats.php4
1 files changed, 2 insertions, 2 deletions
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']);