JustinW Posted April 19, 2009 Share Posted April 19, 2009 Hello, I need to do this. Let's say you have a table and within this table there's a field named "ratings." Within this field, there are numbers. I need to get the average (mean) of these numbers. How would I do this? Quote Link to comment https://forums.phpfreaks.com/topic/154721-solved-getting-the-average-of-an-array-mysql/ Share on other sites More sharing options...
.josh Posted April 19, 2009 Share Posted April 19, 2009 avg() Quote Link to comment https://forums.phpfreaks.com/topic/154721-solved-getting-the-average-of-an-array-mysql/#findComment-813583 Share on other sites More sharing options...
JustinW Posted April 19, 2009 Author Share Posted April 19, 2009 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/154721-solved-getting-the-average-of-an-array-mysql/#findComment-813590 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.