MySQL DoesAccountExists
#2

PHP код:
MySQL_DoesAccountExist(nick[])
{
    new 
string[128];
    
mysql_format('Your SQL Handle'stringsizeof(string), "SELECT `nickname` FROM `accounts` WHERE `nickname` = BINARY '%s'"nick);
    
mysql_tquery('Your SQL Handle'string"OnAccountExistCheck""s"nick);
}
forward OnAccountExistCheck(nick[]);
public 
OnAccountExistCheck(nick[]) {
   if(
cache_num_rows() == 0) {
   return 
false;
   }
   return 
true;

should work like this
Reply


Messages In This Thread
MySQL DoesAccountExists - by KamilPolska - 01.07.2018, 14:38
Re: MySQL DoesAccountExists - by anmelvin - 01.07.2018, 19:50
Re: MySQL DoesAccountExists - by KamilPolska - 03.07.2018, 01:04
Re: MySQL DoesAccountExists - by jasperschellekens - 03.07.2018, 10:18
Re: MySQL DoesAccountExists - by anmelvin - 07.07.2018, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)