Rating system sql code
View Single Post
11-08-2008, 11:43 PM
Join Date: Sep 2007
Location: Sweden, Stockholm
Yah :) I have no idea what the estimates was.
But the basic idea here is that you have a table "ratings".
id, productid(or w.e id you have on the thing that is being rated), 1, 2, 3, 4, 5
Then when someone rates 2, add one to the "2" column
And when getting the actual rating of the product(or w.e), you do the formula that I posted in my previous post
The Following User Says Thank You to Tanax For This Useful Post:
View Public Profile
Send a private message to Tanax
Visit Tanax's homepage!
Find More Posts by Tanax