PHP Mysql Query Help - DUPLICATE?

David Cookson

New member
Hi,

I would appreciate as much help as i can get with this, i can not seem to find a answer anywere.

Basically i have programmed a simple Rating script for my forum, got everything i need for it.
Only problem - i do not know how to prevent a user from rating more than once on the same post, i have the post id and the ip address logged in the mysql database.
I am looking for someway to show "You have already voted" or something similar when the user attempts to vote again.

Greatly appreciate any advice :D
 
Back
Top