echo "Amount: " . $row['total']; echo '</td>'; echo '</tr>'; echo '</table>'; echo '</fieldset>'; ?> </div> </div> <div id="pieChart"> <br/> <fieldset> <legend>Income Per Section</legend> <div id="chartid"> <?php $admin = new functionalityManager(); $tech = $admin->getAmountSection('Tech Support'); if ($tech == "") { $tech = 0; } $system = $admin->getAmountSection('System Ad'); if ($system == "") { $system = 0; } $network = $admin->getAmountSection('Network Ad'); if ($network == "") { $network = 0; } $mis = $admin->getAmountSection('MIS'); if ($mis == "") { $mis = 0; }