Re: php mysql arrays and totals

From: Date: Fri, 18 Jul 2003 10:33:54 +0000
Subject: Re: php mysql arrays and totals
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-29327@lists.php.net to get a copy of this message
i didnt even know that function existed, could you maybe give me a little more detail on it, then im sure i can figure it out, thanks allot, -wendell "Dirk Kredler" <dirk@computication.net> wrote in message news:200307181226.11385.dirk@computication.net... > Am Freitag, 18. Juli 2003 12:18 schrieb Wendell Frohwein: > > called amount. I use mysql_query("SELECT amount FROM items"); to get the > > amounts into the script. > > I would then like all the values to be added up for a grand total. I have > > tried this and the > > why dont you use : > > SELECT SUM(amount) FROM items > > ? > > best wishes, > Dirk > >

« previous php.db (#29327) next »