title: Protect counter views In order not to be manipulated
body: <p>I have this code :</p>
  
  <pre><code>$id = $_GET['id'];
  mysql_query("UPDATE threads SET views = views + 1 WHERE id = '$id'");
  </code></pre>
  
  <p>but when I click refresh over and over the counter increases with each refresh.</p>
  
  <p><strong>How can I protect this counter from this with sessions or any other way?</strong></p>