I am trying to do a piece of code to take the ratings which users give companies in a review, average them out and then print them on the screen.
Can anyone help me with a piece of code that can do this.
the code is coming from a mysql table called reviews, the companies are called on by their id and the ratings are in a column called "ratings
Can anyone help me with a piece of code that can do this.
the code is coming from a mysql table called reviews, the companies are called on by their id and the ratings are in a column called "ratings