I made this MySQL query to sum a column then i did echo $rake and i got the output : Resource id #13
It will be highly appreciated if anyone can assist me with this
<?php
$rake = mysql_query("select sum(value) as RakeSum from rakeitems");
echo $rake;
?>
Did i forget something after the query? I am not very good at mysql so im unsure. Any help will be nice :) I have tried changing the query up.
And what does as do in the query, "as RakeSum" what does that mean?
RakeSum. otherwise the name would besum(value)as the column. You can run this in the mysql database to see (with and withoutas)mysql_fetch_assocsee: stackoverflow.com/questions/7785401/…