"; $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, "", '100%', 500, false, true); ?>