browser and ip not allowed next 5 min after registration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    browser and ip not allowed next 5 min after registration

    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 ?

    #2
    select * from table_name where ip=useriip and useragent=useragent and registertime>300

    Comment


      #3
      if ($query = ("select * from chat_users where ip='".$ipadd."' and soft='".$browser."' and rtime>300;")) $error.='Your are not allowed to register again with in 5 minutes.<br/>';


      not working bro

      Comment


        #4
        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


          #5
          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 error
          Last edited by bijaybd; 01.07.09, 14:13.

          Comment

          Working...
          X