function SqlBarChart($sql, $width_pixels) { $result = query($sql); $data = []; while ($row = mysql_fetch_row($result)) { $key = strtolower($row[0]); $value = $row[1]; $data[$key] = $value; } mysql_free_result($result); RenderBarChart($data, $width_pixels); }
" style="font-weight:bold"><?php echo $strategic_vote; ?> </span> </p> <p> Voter turnout in the last election — <?php echo $turnout_2011; ?> % </p> <p>If the election were held today, this is the projected popular vote in the riding of <?php echo $riding_name; ?> , based on the latest polls.</p> <?php require_once 'barchart.php'; RenderBarChart($data, 200); ?> <p></p> <p> You can <a href="http://www.elections.ca/content.aspx?section=vot&dir=reg&document=index&lang=e"> register to vote</a> online. It's fast and easy.</p> <p> The projections are updated every day until election day: October 19, 2015. <a href="/">AnyoneButHarper.net Home</a> </p> <?php include 'more_info.php';