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

From: Date: Mon, 04 Aug 2003 17:21:19 +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-158166@lists.php.net to get a copy of this message
I tried the code you provided below but it returned 0. Is there another way I can do it? > > From: Jason Wong <php-general@gremlins.biz> > Date: 2003/08/04 Mon AM 04:25:13 EDT > To: php-general@lists.php.net > Subject: Re: [PHP] Addin a column of numbers not using MySQL > > On Monday 04 August 2003 15:59, Ben C. wrote: > > Yes. From there I want to add all the 'a' values together using PHP. > > So do it then. > > $total = $total + $myrow['a'] // or something as you go through the loop > // is just one of the ways to do this > > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > A beautiful woman is a picture which drives all beholders nobly mad. > -- Emerson > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#158166) next »