"; $strXML2 .=""; $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)) { $strXML2 .= ""; } } $result2 = mysqli_query($link, $strQuery) or die(mysql_error()); $strXML2 .=""; if ($result2) { while($ors1 = mysqli_fetch_array($result2, MYSQLI_ASSOC)) { $strXML2 .= ""; } } mysqli_close($link); $strXML2 .= ""; echo renderChart("../../FusionCharts/MSLine.swf", "", $strXML2, "imbflow", '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 .= ""; } } mysqli_close($link); $strXML .= ""; echo renderChart("../../FusionCharts/MSLine.swf", "", $strXML, "imbflow24", '100%', 500, false, true); ?>