RE: Re: [PHP] Addin a column of numbers not using MySQL

From: Date: Mon, 04 Aug 2003 19:06:10 +0000
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
Groups: php.general 
Request: Send a blank email to php-general+get-158181@lists.php.net to get a copy of this message
[snip] I tried the code again and still returns a '0'. It looks like the while() is only looping one record at a time. It does looks like it is add all the records. Do you or anyone have any other suggestions? [/snip] D'oh! *slaps forehead*! It IS getting only one record! Dang! SELECT SUM(foo) will only return the sum of the column foo...one record! Repost your query and I can help....

« previous php.general (#158181) next »