I have a problem to get result from mysql.
I want this average result when i have for example two reviews:
but i got this results separatly instead:
and i cant figure how to solve it, because i am still beginner in php/mysql
here is the code:
`$db->query("SELECT ROUND( AVG(grade),1 ) as `grade` FROM grades WHERE id = '$grade_id'");`