Re: Add Up Prices in Array
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Add Up Prices in Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149709@lists.php.net to get a copy of this message | ||
If they are coming out of your database, why not get your database to do
it for you by calling SUM() in your query?
On Sun, 1 Jun 2003, Ralph wrote:
> I'm querying prices off a database then storing these in an array, I
> want to add these up to get the grand total, how would I go about adding
> up all the prices stored in the array?
>
> Thanks in advance.
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>