5

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?

Vvv
  • 53
  • 1
  • 4

3 Answers3

3

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.

Yuval Adam
  • 161,610
  • 92
  • 305
  • 395
  • -1 You're wrong. It depends what we're talking about. There are external services for that matter, or even scripts that "attach" to the current system called module in some cases. –  Aug 24 '14 at 11:48
2

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

Michael Goldshteyn
  • 71,784
  • 24
  • 131
  • 181
1

You can use this one: http://www.technabled.com/2011/02/pulse-lite-reddit-ajax-up-down-voting.html Disclosure: I am the developer.

abhisek
  • 924
  • 1
  • 13
  • 27