Re: php mysql arrays and totals

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

 



Am Freitag, 18. Juli 2003 12:18 schrieb Wendell Frohwein:
> called amount. I use mysql_query("SELECT amount FROM items"); to get the
> amounts into the script.
> I would then like all the values to be added up for a grand total. I have
> tried this and the

why dont you use :

SELECT SUM(amount) FROM items

?

best wishes,
Dirk



-- 
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