Im trying to get a grand total here is the code I have used so far
$sql = "SELECT account_number,
account_name,
SUM(total)
FROM tbl1
GROUP BY(account_number)";
right know it work fines as far a giving a total for all transactions in every account, but what I would like now is to have a grand total at the end from all the account totals SUM(total). does anybody know how to do this