Hello, many thanks for the reply.
When it comes to anything with MySQL, I am a complete newbie. I basically want a PHP page with a giant table, two colums wide. The left for users, the right for votes, or clicks on that button.
After that button is clicked, it goes through a script called setvoted.php, and this sets a cookie, which tells the script that the user has voted today. The Get Rewarded button only works when that cookie is not set. So I believe that there would be no need for the else and if in your statement. Correct me if I am wrong.
I have never used MySQL before, so I am wondering how their username can be added to this table on another PHP document, alongside their votes.
Thanks.
And to the above comment, yes, once I get my head around MySQL, I will make it store their IP to, so that it can check for cookies, their IP, and their username. This would further prevent any cheating.