title: how to get table updated only once after page reloaded
body: <p>i made an application where user have some points(like stackoverflow reputation), if someone want to see other answer then his 2 point will be deducted.
  so what actually did i passed que_id and uniq_id into url or link, and on the basis of that value i updated his POINTS with -2.
  see my url is:</p>
  
  <pre><code>&lt;a href='marks.php?que_id =$que_id &amp;&amp; uniq_id = $uniq_val' target='_blank' onclick='p_alert()'&gt;Answers&lt;/a&gt;
  </code></pre>
  
  <p>and update table as:</p>
  
  <pre><code>$n_points = $o_points - $cut_points;
  $res1 = "update $tab set points = '$n_points' where uniq = '$uniq_val'";
  </code></pre>
  
  <p>its working fine but problem occurs when page get reloaded and the points cutting simultaneously with each refresh.</p>
  
  <p>so what i do for overcome this(<strong>expect header() redirection</strong>), any idea suggestion would be highly appreciated.
  Thank you</p>