summaryrefslogtreecommitdiff
path: root/html/import/import_ctf.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/import/import_ctf.php
parent4d21dfcac97fd02c186bb3ce4085275b36e3790e (diff)
Update to mysqli
Diffstat (limited to 'html/import/import_ctf.php')
-rwxr-xr-xhtml/import/import_ctf.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/html/import/import_ctf.php b/html/import/import_ctf.php
index 206cbb0..73c1bb2 100755
--- a/html/import/import_ctf.php
+++ b/html/import/import_ctf.php
@@ -1,7 +1,7 @@
<?php
// Get Player Flag Events Count
$sql_playerctf = "SELECT col1, COUNT(col1) AS flag_count FROM uts_temp_$uid WHERE (col1 LIKE 'flag_%' OR col1 = 'cover' OR col1 = 'seal') AND col2 = $playerid GROUP BY col1";
- $q_playerctf = mysql_query($sql_playerctf);
+ $q_playerctf = mysqli_query($GLOBALS["___mysqli_link"], $sql_playerctf);
$flag_taken = 0;
$flag_dropped = 0;
@@ -13,7 +13,7 @@
$flag_kill = 0;
$flag_pickedup = 0;
- while ($r_playerctf = mysql_fetch_array($q_playerctf)) {
+ while ($r_playerctf = mysqli_fetch_array($q_playerctf)) {
// Cycle through events and see what the player got
@@ -39,5 +39,5 @@
flag_kill = $flag_kill,
flag_pickedup = $flag_pickedup
WHERE id = $playerecordid";
- mysql_query($sql_playerflags) or die(mysql_error());
+ mysqli_query($GLOBALS["___mysqli_link"], $sql_playerflags) or die(mysqli_error($GLOBALS["___mysqli_link"]));
?>