voting/ rating systom
Posted on 2011-03-08
am trying to make a rating system for top products on my site. i would like my users to click a button to like a product and then on the home page it will only show the top 5 liked products.
the voting system will take all votes from all users of the site and then display the top 5 on the home page for every on to see. i dont want it to be like target advertising but just to show what every one is liking across the hole site.
so am trying to think of some php to get this working.
query to get the current number of likes for the product then update the current number of likes by 1.
a way of not allowing users to vote more than once on a product
any help would be great thx.