The Sum Of All Rows: Use PHP or MySQL to Do The Math?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: The Sum Of All Rows: Use PHP or MySQL to Do The Math?
mysql_query returns a resource, if you look at the documentation for it.
You need to fetch data from this resource using mysql_fetch_array or similar, as you have done.

My Blog
09-25-2010 07:02 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: The Sum Of All Rows: Use PHP or MySQL to Do The Math? - ZiNgA BuRgA - 09-25-2010 07:02 PM

 Standard Tools
Forum Jump: