Hey all,
Just wondering if anybody can help me with this, its a simple problem but i just dont know what function to use. Heres the code i have now.
$validateVoterSQL = "select votersIP from $poll_log where pollID=$pollID";
$validateVoterResult = mysql_query($validateVoterSQL)
or die ("Error !! (poll-vote1.php)mysql : $query : " . mysql_error());
$votersIProw=mysql_fetch_array($validateVoterResult);
$votersIP=$votersIProw["votersIP"];
if($votersIP==$REMOTE_ADDR)
header("Location: http:".$filename."?".$phpQuery."
&pollreq=poll-result&pollMSG=You+may+only+vote+once!#poll");
The idea of this is to deny a user with the same IP from voting twice (on a poll) -- at the moment, if($votersIP==$REMOTE_ADDR), only gets the first var... i need a way of making it look through all the vars. Feel free to tidy this up for me aswell if u want, hehe :p