This code works but i want to add all the total costs up at the bottom of the search output, the // Loop through data and display is outputs displayed from MySQL, from this code all i get is the total price for each booking but i want to add each booking to display the overall price. So if anyone could help me i would be grateful as its my final year project thank u.
?>
<center>
<table border="0" width="75%">
<td><center><hr>Day<hr></center></td>
<td><center><hr>Booking dates<small>(From and to)</small><hr></center></td>
<td><center><hr>TotalPrice (£)<hr></center></td>
</tr>
</center>
<?
// Loop through data and display
while($a_row= mysql_fetch_assoc($result))
echo "<tr><td style=\"color:Black\">".$a_row['DayofWeek']."</td>".
"<td style=\"color:Black\">".$a_row['Bookingdate']."</td>".
"<td style=\"color:red\">".$a_row['Total']."</td></tr>";
// Close connection ! (please !)
mysql_close($connection);
?>