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

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to