ok what i am trying to do is when u go to vote to check ur ip based upon a subid and compare that to the remote address to prevent double votes
here is the coding
/* BEGIN ANTI CHEATING VERIFICATION PROTOCAL */
$sql = "SELECT * FROM voted WHERE subid = $subid";
$r = mysql_query($sql) or die('Error, query failed');
$arr = mysql_fetch_array($r);
$ip = $arr['ip_address'];
if ($ip = $REMOTE_ADDR) {
echo "<p align=center class=contest_small>SORRY YOU HAVE ALREADY VOTED";
exit;
}
/*END ANTI CHEATING PROTOCAL */