note 18783 added to function.mysql-fetch-array

From: Date: Tue, 05 Feb 2002 19:22:17 +0000
Subject: note 18783 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-26264@lists.php.net to get a copy of this message
I'm pulling the results from a table but I want to add them all together. I cannot work the code out! $total = $row->amount + $row->amount; simply doubles the last result. -- http://www.php.net/manual/en/function.mysql-fetch-array.php http://master.php.net/manage/user-notes.php?action=edit+18783 http://master.php.net/manage/user-notes.php?action=delete+18783 http://master.php.net/manage/user-notes.php?action=reject+18783

« previous php.notes (#26264) next »