Re: pulling numbers from a column and getting a total

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave W wrote:

> Hi, I was just wondering on how I could get a whole column full of
> integers and added them up and display that total? I currently use a for
> loop to display the whole column in a table, but I wanted to add all those
> numbers up.
> 
> Thanks.
> 

You could use the SUM function in your DB to do the work for you.


Cheers
-- 
David Robley

Power corrupts; absolute power is even more fun.
Today is Pungenday, the 62nd day of Confusion in the YOLD 3172. 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux