RE: [PHP-DB] need help with PHP/MySQL

From: Date: Tue, 21 Nov 2000 03:27:38 +0000
Subject: RE: [PHP-DB] need help with PHP/MySQL
Groups: php.db 
Request: Send a blank email to php-db+get-4593@lists.php.net to get a copy of this message
Hey there! This is a job for pure SQL. Try this: SELECT SUM(fieldname) FROM tablename WHERE yourWhereExpression Should work perfectly! -Bj > -----Original Message----- > From: Gustavo Souza [mailto:gus74@terra.com.br] > Sent: Tuesday, November 21, 2000 4:16 AM > To: php-db@lists.php.net > Subject: [PHP-DB] need help with PHP/MySQL > > > hello, im trying to calculate rows from a table (price field) > and show the > total > > like 200,00 + > 100,00 + > 50,00 + > 10,00 = > > 360,00 > > anyone can help me to do it with PHP and MySQL ? > > thanks > > GS > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.db (#4593) next »