";
// Fetch all factory records
$strQuery111 = " SELECT * FROM $myTable GROUP BY $myTableGroup ";
$result111 = $dbObj->execQuery($strQuery111);
//Iterate through each factory
if( $result111 ) {
while( $rs111 = $dbObj->fetchArray($result111) ) {
$Year = $rs111['Year_com'];
$strQuery222 = " SELECT * FROM committee_tb WHERE Year_com='$rs111[Year_com]' ";
$result222 = $dbObj->execQuery($strQuery222);
$numAmt222 = $dbObj->_numrows;
$dbObj->freeresult($result222);
$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/Column3D.swf", "", $strXML, "", 750, 375, false, false);
?> |