Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Up/down voting script

I'm trying to develop a voting system in PHP for my posts where visitors can vote them up or down and then I should be able to sort posts by highest/lowest rated.

Can anyone please recommend a good script I can use for this?

like image 404
Vvv Avatar asked Oct 15 '10 16:10

Vvv


2 Answers

There is no "script" that will magically do this for you.

You will need to create a table in your MySQL database, which at the very least has two fields, post id, and vote count.

You will also need to create a PHP page which handles vote updates as well as returning posts in sorted order.

like image 56
Yuval Adam Avatar answered Oct 22 '22 20:10

Yuval Adam


The following links refer you to pages with a bunch of such voting scripts. Some are free and some you have to pay for:

like image 2
Michael Goldshteyn Avatar answered Oct 22 '22 21:10

Michael Goldshteyn