";
// Fetch all factory records
$strQuery111 = " SELECT * FROM $myTable GROUP BY Faculty_code ";
$result111 = $dbObj->execQuery($strQuery111);
//Iterate through each factory
if( $result111 ) {
while( $rs111 = $dbObj->fetchArray($result111) ) {
$Faculty_code = $rs111['Faculty_code'];
$strQuery222 = " SELECT * FROM $myTable1 WHERE Faculty_code='$rs111[Faculty_code]' ";
$result222 = $dbObj->execQuery($strQuery222);
$numAmt222 = $dbObj->_numrows;
$dbObj->freeresult($result222);
// $strXML .= "";
$strXML .= "";
} # while
} # if
$dbObj->freeresult($result111);
//Finally, close element
$strXML .= "";
//Create the chart - Pie 3D or Column3D Chart with data from strXML
echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750,300, false, false);
?> |
|