This class can be used to update user votes and display rated content with star images.
It can store in a MySQL database the ratings given by each user that votes on content keeping track of the IP addresses of the computers from which each user votes.
The class shows a row of stars to let the user vote on the content. Votes are submitted to the server via AJAX.
It can also display the stars that correspond to the current average of votes from all users of different IP addresses. |