What database are you using?
MySQL has a SUM function which automatically selects the total of a column.
-VolVE
- Original Message -
From: "JohnP" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 21:25
Subject: Re: [PHP] Average Num
Can't you just count the elements and then divide the total by the count?
It seems pretty obfuscating to consider a function that takes an unknown
number of elements, unless it were an array... still, seems pretty easy to
count and divide total... doesn't it?
-VolVE
> - Ori
2 matches
Mail list logo