";
// Fetch all factory records
$strQuery = " SELECT * FROM salary_repot_tb GROUP BY Start_year ";
$result111 = mysql_query($strQuery);
//Iterate through each factory
if ($result111) {
while( $rs111 = mysql_fetch_array($result111) ) {
$strQuery = " SELECT * FROM salary_repot_tb WHERE Start_year='$rs111[Start_year]' ";
$result222 = mysql_query($strQuery);
$numAmt = mysql_num_rows($result222);
$strXML .= "";
} # while
} # if
//Finally, close element
$strXML .= "";
//Create the chart - Pie 3D Chart with data from strXML
echo renderChart("../charts/Column3D.swf", "", $strXML, "", 750, 375, false, false);
?> |