TM> id - price
TM> 1 1000
TM> 2 300
TM> 3 200
TM> How to sum up price row ?
This can be done by MySQL rather than PHP.
mysql_query ("SELECT SUM (price) FROM table");
--
Andrew Perevodchik
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] suming up in MySQL Teqila MAN
- Re: [PHP] suming up in MySQL David Otton
- Andrew Perevodchik

