hello friends
i want to sum up my table field data...my table name is fee_info and i the field i want to sum is exam_Fee...
i have come out with a query but at last i am not figuring it out yet.
here is mine code
mysql_connect("localhost","root","");
mysql_select_db("new");
$get= mysql_query("SELECT SUM(exam_fee) as total FROM fee_info");
while($getnow=mysql_fetch_assoc($get))
{
$Reg=$getnow['exam_fee'];
echo $Reg;
}
?>
please help me to solve it out...quick