summaryrefslogtreecommitdiff
path: root/html/import/import_ass.php
diff options
context:
space:
mode:
Diffstat (limited to 'html/import/import_ass.php')
-rwxr-xr-xhtml/import/import_ass.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/html/import/import_ass.php b/html/import/import_ass.php
index 9539bc5..22819a1 100755
--- a/html/import/import_ass.php
+++ b/html/import/import_ass.php
@@ -3,32 +3,32 @@
$r_assobj = small_query("SELECT count(id) AS assobjcount FROM uts_temp_$uid WHERE col1 = 'assault_obj' AND col2 = $playerid");
$assobjcount = $r_assobj[assobjcount];
$upd_assobj = "UPDATE uts_player SET ass_obj = $assobjcount WHERE id = $playerecordid";
- mysql_query($upd_assobj) or die(mysql_error());
+ mysqli_query($GLOBALS["___mysqli_link"], $upd_assobj) or die(mysqli_error($GLOBALS["___mysqli_link"]));
// Get assault game code (unique code give for the 2 games played)
$r_asscode = small_query("SELECT col2 FROM uts_temp_$uid WHERE col1 = 'assault_gamecode' LIMIT 0,1");
$asscode = $r_asscode[col2];
$updateasscode = "UPDATE uts_match SET assaultid = '$asscode' WHERE id = $matchid";
- mysql_query($updateasscode) or die(mysql_error());
+ mysqli_query($GLOBALS["___mysqli_link"], $updateasscode) or die(mysqli_error($GLOBALS["___mysqli_link"]));
// Get Which Teams Attacking
$r_assteam = small_query("SELECT col2 FROM uts_temp_$uid WHERE col1 = 'assault_attacker' LIMIT 0,1");
$assteam = $r_assteam[col2];
$updateassteam = "UPDATE uts_match SET ass_att = $assteam WHERE id = $matchid;";
- mysql_query($updateassteam) or die(mysql_error());
+ mysqli_query($GLOBALS["___mysqli_link"], $updateassteam) or die(mysqli_error($GLOBALS["___mysqli_link"]));
// Did they do it?
$sql_asswin = "SELECT col0 FROM uts_temp_$uid WHERE col1 = 'game_end' AND col2 = 'Assault succeeded!' LIMIT 0,1";
- $q_asswin = mysql_query($sql_asswin) or die(mysql_error());
+ $q_asswin = mysqli_query($GLOBALS["___mysqli_link"], $sql_asswin) or die(mysqli_error($GLOBALS["___mysqli_link"]));
$asswin = 0;
- while ($r_asswin = mysql_fetch_array($q_asswin)) {
+ while ($r_asswin = mysqli_fetch_array($q_asswin)) {
IF ($r_asswin[col0] != NULL ) { $asswin = 1; }
}
$updateasswin = "UPDATE uts_match SET ass_win = $asswin WHERE id = $matchid;";
- mysql_query($updateasswin) or die(mysql_error());
+ mysqli_query($GLOBALS["___mysqli_link"], $updateasswin) or die(mysqli_error($GLOBALS["___mysqli_link"]));
?>