mysql statment:
SELECT SUM (flyeramount) total_flyers
FROM summerflyer;
now I need to put this into my document.php, can anyone help? i tried:
<? $query = "SELECT SUM flyeramount FROM summerflyer";
$result = mysql_query ($total_flyers); ?>
and then put the following into my page for it to echo:
<?php echo $totalflyers ?>
but nothing happens, any help would be greatly appreciated!!!!