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/pages/watchlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/pages/watchlist.php') diff --git a/html/pages/watchlist.php b/html/pages/watchlist.php index 4f4cf1b..0da97eb 100755 --- a/html/pages/watchlist.php +++ b/html/pages/watchlist.php @@ -85,9 +85,9 @@ foreach ($watchlist as $pid) { $r_pinfo = small_query($sql_pinfo); - $q_players = mysql_query($sql_players) or die(mysql_error()); + $q_players = mysqli_query($GLOBALS["___mysqli_link"], $sql_players) or die(mysqli_error($GLOBALS["___mysqli_link"])); - while ($r_players = mysql_fetch_array($q_players)) { + while ($r_players = mysqli_fetch_array($q_players)) { $i++; $new = (mtimestamp($r_players['time']) > $s_lastvisit) ? true : false; $class = ($i % 2) ? 'grey' : 'grey2'; -- cgit