So you're wanting to add the contents of your table?

So you're wanting to add the contents of your table?
Back for a while.
Sorted - thanks, Source.PHP Code:<?php
mysql_connect( 'localhost', 'calonuk_trains', '*****' ) or die(mysql_error());
mysql_select_db( 'calonuk_website' ) or die(mysql_error());
$handle = mysql_query("SELECT SUM(amount) AS total FROM `money`");
$row = mysql_fetch_assoc( $handle );
echo '£'.$row['total'] .' out of £300';
?>
Want to hide these adverts? Register an account for free!