[thelist] strange php/mysql display problem (solved)

r937 rudy at r937.com
Tue Jun 8 09:29:47 CDT 2010

> The solution was to step further back and 
> do the math in the mysql query as in:
> sum(rating)/count(rating) as avg_rating,

you could also have done it this way:

    ...  AVG(rating)  AS avg_rating 


More information about the thelist mailing list