i am try to code a system like if a user register next 5 min with the same browser and ip the user will not able to register again by this way there will be much protection is there any code to do that can somebody help me ?
browser and ip not allowed next 5 min after registration
Collapse
X
-
try something like this
Code:$query = ("SELET* from chat_users WHERE ip='".$ipadd."', soft='".$browser."', rtime='".$registration_time_row_name."'"); if($query[2]=<300) { echo "Your are not allowed to register again with in 5 minutes.<br/>"; }else{ rest of code here }
Nous Ne Dansos Pas, Nous Sommes Le Danse.!
Comment
-
showing : Parse error: syntax error, unexpected '<' this error
also i tried it but failed again :
if $ac=mysql_fetch_array(mysql_query("select * from chat_users where ip='".$ipadd."' and soft='".$browser."' and rtime='".$rtime."'"));
if($rtime[0]=<60)
{
echo "Your are not allowed to register again with in 1 minute.<br/>";
}else{
registration rest code
}
it also shows errorLast edited by bijaybd; 01.07.09, 14:13.
Comment
Comment