diff options
| author | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-01-14 20:08:50 +0100 |
|---|---|---|
| committer | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-09-01 11:48:28 +0200 |
| commit | 7e5c50603cbe1307d68a2b5b8ee14409e15a9dcb (patch) | |
| tree | 0fff0499b4d94f8ed2e13d72bfd97dec51cd283e /html/pages/match_info_charts.php | |
| parent | 4d21dfcac97fd02c186bb3ce4085275b36e3790e (diff) | |
Update to mysqli
Diffstat (limited to 'html/pages/match_info_charts.php')
| -rw-r--r-- | html/pages/match_info_charts.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/pages/match_info_charts.php b/html/pages/match_info_charts.php index ed62fe5..549d00d 100644 --- a/html/pages/match_info_charts.php +++ b/html/pages/match_info_charts.php @@ -5,25 +5,25 @@ include_once 'includes/renderer-general-output.php'; global $renderer_heigth; global $renderer_width; -$mid = mysql_real_escape_string($mid); +$mid = mysqli_real_escape_string($GLOBALS["___mysqli_link"], $mid); $prevCategory = ""; $chartOutput = ""; $prevRenderedChart = ""; // get all charts for this match -$charts = mysql_query("SELECT d.* , t.charttype, t.category, t.type, t.color, t.layout,t.columns +$charts = mysqli_query($GLOBALS["___mysqli_link"], "SELECT d.* , t.charttype, t.category, t.type, t.color, t.layout,t.columns FROM uts_chartdata d JOIN uts_charttypes t ON d.chartid = t.id WHERE d.mid = $mid - ORDER BY d.id ASC") or die(mysql_error()); + ORDER BY d.id ASC") or die(mysqli_error($GLOBALS["___mysqli_link"])); -$chartCount = mysql_num_rows($charts); +$chartCount = mysqli_num_rows($charts); if ($chartCount >0) { $i = 0; // cycle over charts - while ($chart = mysql_fetch_array($charts)) { + while ($chart = mysqli_fetch_array($charts)) { // retrieve both generic as the specific data $category = $chart['category']; |
