MySQL Query Problem
#1

Hello i have a problem about a query, i know it's mysql_query but i need the result "instant"

PHP код:
new Cache:csalt,squery[128];
    
mysql_format(SQLsquerysizeof(squery), "SELECT `salt` FROM `users` WHERE `name` = '%e'"GetName(playerid));
    
csalt mysql_query(SQLsquery);
    if(
cache_num_rows() > 0)
    {
        
cache_get_field_content(0"salt"PlayerInfo[playerid][pSalt], SQL);
    }
    
cache_delete(csaltSQL);
    
format(squerysizeof(squery), "Salt: %s",PlayerInfo[playerid][pSalt]);
    print(
squery); 
I try to get the salt from database , but always return as a empty string adn the login system not working becasue there is no salt , how to make this query work?
Reply


Messages In This Thread
MySQL Query Problem - by Banditul18 - 06.04.2017, 19:41
Re: MySQL Query Problem - by BroZeus - 06.04.2017, 19:56
Re: MySQL Query Problem - by Banditul18 - 06.04.2017, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)