Hi
This is my first post so I hope the details given are adequate.
Can any one point in the right direction.
I am running a query to select summary data and would like to total that summary data at the end of the column.
What is the best way to do this?
result = mysql_query("SELECT nomcode,sum(debit),sum(credit) FROM nomledg
echo "<tr><td align=right>";
echo $row['nomcode'];
echo "</td><td align=right>";
echo number_format($row['sum(debit)'],2);
echo "</td> <td align=right>";
echo number_format($row['sum(credit)'],2);
echo "</td><td align=right>";
echo number_format($total=($row['sum(debit)']- $row['sum(credit)']),2)
echo "</td></tr>";