Little problem
#10

Try this :
PHP код:
IPBanned(const str[]) 

    new 
query[85],Cache:result,rows;
    
// you dont really need to select anything if you just need to check if ip is there
    // you can just use row count to see if ip exists or not
    // notice change in query here and always use %e
    
mysql_format(mysqlquerysizeof(query), "SELECT NULL FROM `ipbanned` WHERE `IP` = '%e' LIMIT 1",str); 
    
result mysql_query(mysqlquery); 
    
rows cache_num_rows();
    
cache_delete(result); 
    return 
rows

Reply


Messages In This Thread
Little problem - by Squirrel - 23.01.2016, 17:35
Re: Little problem - by K0P - 23.01.2016, 17:44
Re: Little problem - by Squirrel - 23.01.2016, 17:45
Re: Little problem - by Prokill911 - 23.01.2016, 19:27
Re: Little problem - by Squirrel - 23.01.2016, 19:27
Re: Little problem - by Prokill911 - 23.01.2016, 19:34
Re: Little problem - by Squirrel - 23.01.2016, 19:38
Re: Little problem - by Squirrel - 24.01.2016, 01:04
Re: Little problem - by CoaPsyFactor - 24.01.2016, 01:36
Re: Little problem - by BroZeus - 24.01.2016, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)