Re: [PHP] total (slightly OT)

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! watch out mysql (or whatever db you have) for SUM() and AVG functions, make sure you understand what a GROUP BY clause is. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× [EMAIL PROTECTED] wrote: > Hey everyone, > Am working late as usual before the weekend and so I fear i'm a bit braindead! > Anyway,heres my prob

[PHP] total (slightly OT)

2002-07-05 Thread kim
Hey everyone, Am working late as usual before the weekend and so I fear i'm a bit braindead! Anyway,heres my problem I have fields named "total" and "avg" and no idea how many records how do I get the total and average? Do I use a function? I know this is pretty simple but. Any help ap