list($sum)=mysql_fetch_assoc(mysql_query('SELECT SUM(salary') FROM employes;'));

Best regards,
Andrey Hristov

On Friday 08 March 2002 09:17 pm, you wrote:
> 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

Reply via email to