[PHP] Re: total (slightly OT)

2002-07-05 Thread Richard Lynch
> >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? select sum(foo), average(foo), count(foo) fr

[PHP] Re: total (slightly OT)

2002-07-05 Thread Pete James
more specific? What fields... from a database? [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 problem > I have fields named "total" and "avg" and no idea how many records > how do I get the total