title: Restrictrions on voting
body: <p>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:</p>
  
  <pre><code>&lt;?php
  $tries=0;
  if (((isset($_POST['hidden']))&amp;&amp;$tries&lt;2) {
      $tries++;
      $likes++;
      $up = mysql_query("Update videos SET Likes='$likes' WHERE Name='$name'");
  }
  ?&gt;
  </code></pre>