"; $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 .= ""; } } /* $result7 = mysql_query($strQuery) or die(mysql_error()); $strXML .=""; if ($result7) { while($ors2 = mysql_fetch_array($result7)) { $strXML .= ""; } } $result8 = mysql_query($strQuery) or die(mysql_error()); $strXML .=""; if ($result8) { while($ors2 = mysql_fetch_array($result8)) { $strXML .= ""; } } $result9 = mysql_query($strQuery) or die(mysql_error()); $strXML .=""; if ($result9) { while($ors2 = mysql_fetch_array($result9)) { $strXML .= ""; } } */ mysqli_close($link); $strXML .= ""; echo renderChart("realtimeline", "", $strXML, "mills", '100%', 500, false, true); /* $link = connectToDB(); $strXML = ""; $strXML .=""; $strQuery = "select Z_TIMESTAMP, LBSPERHR FROM milling GROUP by LBSPERHR ORDER by Z_TIMESTAMP DESC"; $result = mysql_query($strQuery) or die(mysql_error()); if ($result) { while($ors = mysql_fetch_array($result)) { $strXML .= ""; } } $result2 = mysql_query($strQuery) or die(mysql_error()); $strXML .=""; if ($result2) { while($ors1 = mysql_fetch_array($result2)) { $strXML .= ""; } } mysql_close($link); $strXML .= ""; echo renderChart("msline", "", $strXML, "pph", '100%', 500, false, true); */ $link = connectToDB(); $strXML = ""; $strXML .=""; $strQuery = "select DATE, FINALMOLTEMP FROM trending where trending.id mod 30 = 0 GROUP by FINALMOLTEMP LIMIT 24"; $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 .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("msline", "", $strXML, "F", '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($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 .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("realtimeline", "BroadbentRealtime", $strXML, "", '100%', 500, false, true); ?>