หน้าหลัก » ค่าตอบแทนบุคลากร/ปี จำแนกตามหน่วยงาน
 
‹ ย้อนกลับ

 

 
"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable2 GROUP BY Ptype_code "; $result111 = $dbObj->execQuery($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = $dbObj->fetchArray($result111) ) { $query112 = " SELECT * FROM $myTable2 WHERE Ptype_code ='$rs111[Ptype_code]' "; $result112 = $dbObj->execQuery($query112); $rs112 = $dbObj->fetchArray($result112); $sql3 = " SELECT SUM(Salary_1*12) AS SumB1 FROM $myTable1 WHERE StatusId='1' AND Person_type='$rs111[Ptype_code]' "; $result3 = $dbObj->execQuery($sql3); $rs3 = $dbObj->fetchArray($result3); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 760, 375, false, false); ?>
 
 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>