Here's an example for how to select the sum of a column in SQL.  Maybe that
will help.

-Natalie

http://www.devguru.com/Technologies/jetsql/quickref/sum.html

> -----Original Message-----
> From: Leif K-Brooks [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 2:17 PM
> To:   [EMAIL PROTECTED]
> Subject:      [PHP-DB] Is this possible in mysql?
> 
> I need to add up the (integer) values of columns, and return the added up
> value as one column to php.  Is this possible?  Or is there something else
> to do it? (I'd rather not have to mysql_fetch_array() in a while loop and
> add it up there, it might be a lot of rows)
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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

Reply via email to