How to stop the counter from increasing when refreshing the page
<p>Here is my code:</p>

<pre><code>$score=0;
$sql10=mysql_query("select * from image WHERE fromUser='".$_SESSION['email']."' order by id desc");
$score1=mysql_fetch_array($sql10);
$answer=$score1['Correct_answer'];
echo $answer;

$sql13=mysql_query("select * from image WHERE toUser='".$_SESSION['email']."' order by id desc");
$score2=mysql_fetch_array($sql13);
$answer2=$score2['User_answer2'];
echo $answer2;


strcasecmp($answer,$answer2);
if(strcasemp)

echo $score +=1;
</code></pre>

<p>As u can see I am comparing the answers and if both are equal I want the score to increase by one. But the code is not working any hint???</p>
