Weedpacket;11057407 wrote:Since you've already extracted the individual amounts all in their own array and use the [man]array_sum[/man].
Hi Weedpacket,
Thanks for the reply.I assume that the column to sum up would be Column 7,the sold column so I assumed that this column would be the 7th element in the array
I tried this
$a = array(7);
echo "sum(a)".array_sum($a)."\n";
I then get the message
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\authors3.php on line 117
Also a bit confused as to where the sum value would actually be placed,as the table is of a particular size and hasn't anymore cells to place the value in.
Kind Regards
s