Hi,
I need some help on how to add all the values i have in my table from my database.
Fisrt here is the code for my table:
while($row = mysql_fetch_array($results))
{
echo "<tr>";
echo "<td> ".$row['Date'] . "</td>";
echo "<td>".$row['Type'] . "</td>";
echo "<td>£".$row['amount'] . "</td>";
echo "</tr>";
Now i want to add the values in the $row['amount'] to get a total. Is there any easy way to do this so i can echo the total?
Any help or advice would be great. Thanks 🙂