How to prevent duplicate entries in MySQL and PHP?

How to prevent multiple voting? (PHP & MySQL)?

  • I basically have a voting system for games. I'm building an ecommerce website and am inputting a feature to allow users to vote on games good or bad. Now I have PHP knowing if ...show more

  • Answer:

    They can change their IP yes or it can automatically change. You can simple use session data as a means of stopping them voting until the session runs out however it would be much more prudent to make a login script as to have proper accounting to then track what people have and haven't voted for. You can also stores these session keys and reassign them when a particular person logs bag in but for simplicity sake just make it so one session needs to end before voting again and stop the same IP voting twice.

72ZHNOAXFHARYSLVWSTSKBSZGU at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Good day mate. To unblock internet sites and surf anonymously I really propose using http://www.vpnmaster.com

Bok

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.