I am displaying the meeting report from PHP Mysql. For Example there will be two fields in database as Department Name and Members. Suppose Mechanical Department has 20, Computer Department has 15, Civil Department has 10. i want to display total count. 20 + 15 + 10 will be 45 . i am using like this code
<?php
$i=1;
while($rows=mysql_fetch_array($result)){
?>
<?php echo $rows['att_report']; ?>
<?php
$i++;
}
?>
i need two conditions. first one is to find total count. and percentage.