I've asked this question before but now i'll be more specific.I have a voting system where anyone can vote(no need to be a registered user).I want to allow users to vote only once.The best way, i guess,would be via booleans,wouldn't it?So i'm just asking you to show me a better way to do it.Here is the code:
<?php
$tries=0;
if (((isset($_POST['hidden']))&&$tries<2) {
$tries++;
$likes++;
$up = mysql_query("Update videos SET Likes='$likes' WHERE Name='$name'");
}
?>