"; $strXML .=""; $strQuery = "select * FROM trending where trending.id mod 5 = 0 GROUP BY DATE DESC LIMIT 100"; $result = mysqli_query($link, $strQuery) or die(mysql_error()); if ($result) { while($ors = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $strXML .= ""; } } $result2 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result2) { while($ors1 = mysqli_fetch_array($result2, MYSQLI_ASSOC)) { $strXML .= ""; } } $result3 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result3) { while($ors2 = mysqli_fetch_array($result3, MYSQLI_ASSOC)) { $strXML .= ""; } } $result4 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result4) { while($ors2 = mysqli_fetch_array($result4, MYSQLI_ASSOC)) { $strXML .= ""; } } $result5 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result5) { while($ors2 = mysqli_fetch_array($result5, MYSQLI_ASSOC)) { $strXML .= ""; } } $result6 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result6) { while($ors2 = mysqli_fetch_array($result6, MYSQLI_ASSOC)) { $strXML .= ""; } } $result7 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result7) { while($ors2 = mysqli_fetch_array($result7, MYSQLI_ASSOC)) { $strXML .= ""; } } $result8 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result8) { while($ors2 = mysqli_fetch_array($result8, MYSQLI_ASSOC)) { $strXML .= ""; } } $result9 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result9) { while($ors2 = mysqli_fetch_array($result9, MYSQLI_ASSOC)) { $strXML .= ""; } } $result10 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result10) { while($ors2 = mysqli_fetch_array($result10, MYSQLI_ASSOC)) { $strXML .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("zoomline", "boilers", $strXML, "boilers", '100%', 500, false, true); $link = connectToDB(); $strXML = ""; $strXML .=""; $strQuery = "select * FROM trending where trending.id mod 30 = 0 GROUP BY DATE DESC LIMIT 192"; $result = mysqli_query($link, $strQuery) or die(mysql_error()); if ($result) { while($ors = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $strXML .= ""; } } $result2 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result2) { while($ors2 = mysqli_fetch_array($result2, MYSQLI_ASSOC)) { $strXML .= ""; } } $result3 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result3) { while($ors2 = mysqli_fetch_array($result3, MYSQLI_ASSOC)) { $strXML .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("zoomline", "steam24hr", $strXML, "steam24hr", '100%', 500, false, true); $link = connectToDB(); $strXML = ""; $strXML .=""; $strQuery = "select * FROM trending where trending.id mod 30 = 0 GROUP BY DATE DESC LIMIT 96"; $result = mysqli_query($link, $strQuery) or die(mysql_error()); if ($result) { while($ors = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $strXML .= ""; } } $result2 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result2) { while($ors2 = mysqli_fetch_array($result2, MYSQLI_ASSOC)) { $strXML .= ""; } } $result3 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result3) { while($ors2 = mysqli_fetch_array($result3, MYSQLI_ASSOC)) { $strXML .= ""; } } $result4 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML .=""; if ($result4) { while($ors2 = mysqli_fetch_array($result4, MYSQLI_ASSOC)) { $strXML .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("zoomline", "steam24hr", $strXML, "exhaust", '100%', 500, false, true); ?>