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/import/import_bt.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/import/import_bt.php') diff --git a/html/import/import_bt.php b/html/import/import_bt.php index fe6a480..be1ea5c 100755 --- a/html/import/import_bt.php +++ b/html/import/import_bt.php @@ -1,14 +1,14 @@ $cap_speed) { $cap_speed = $r_capbt['col3']; $col0 = $r_capbt['col0']; // time @@ -34,13 +34,13 @@ $sql_eventsbt = "INSERT INTO uts_events (matchid, playerid, col0, col1, col2, col3, col4) VALUES ($matchid, $playerid, '$col0', '$col1', '$col2', '$col3', '$col4')"; - mysql_query($sql_eventsbt) or die (mysql_error()); + mysqli_query($GLOBALS["___mysqli_link"], $sql_eventsbt) or die (mysqli_error($GLOBALS["___mysqli_link"])); } if ($flag_capture > 0) { $sql_playerflags = " UPDATE uts_player SET flag_capture = $flag_capture 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"])); } ?> -- cgit