execQuery($queryUsr); $rss = $dbObj->fetchArray($resultUsr); */ //=== $query = " SELECT * FROM $myTable2 GROUP BY $myTablePK "; $result = $dbObj->execQuery($query); $num = $dbObj->_numrows; ?> ข้อมูลแผนดำเนินงานและรายงาน : ข้อมูลแผนดำเนินการ รายปีงบประมาณ
หน้าหลัก » ข้อมูลแผนดำเนินการ รายปีงบประมาณ
'" />

"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable2 GROUP BY $myTablePK "; $result111 = $dbObj->execQuery($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = $dbObj->fetchArray($result111) ) { $sql3 = " SELECT SUM(Budget_total) AS SumB1 FROM $myTable2 WHERE Budget_Year='$rs111[Budget_Year]' "; $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/Column3D.swf", "", $strXML, "", 750, 375, false, false); ?>

 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>