I've made a form that allows users to submit their name, a comment and a score from 1-6, which then is saved in a table in their respective fields; name, comment and score. I wan't to display the average score.
This is what I've found out so far:
$result = mysql_query("SELECT AVG(fieldName) FROM tableName");
How do I echo this out?