Fetching a data from mySQL
#9

PHP код:
new Cache:resultquery[70];
mysql_format(g_SQLquerysizeof query"SELECT `skin` FROM `players` WHERE `id` = %d LIMIT 1"Player[playerid][ID]);
result mysql_query(g_SQLquery);
if(
cache_num_rows())
{
    
cache_get_value_int(0"skin"Player[playerid][Skin]);
    
SetPlayerSkin(playeridPlayer[playerid][Skin]);
}
else 
SendClientMessage(playerid, -1"Nothing found");
cache_delete(result); 
Reply


Messages In This Thread
Fetching a data from mySQL - by Fratello - 27.09.2017, 14:37
Re: Fetching a data from mySQL - by AndreiWow - 27.09.2017, 14:48
Re: Fetching a data from mySQL - by jlalt - 27.09.2017, 14:50
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 14:56
Re: Fetching a data from mySQL - by jlalt - 27.09.2017, 15:00
Re: Fetching a data from mySQL - by raydx - 27.09.2017, 15:05
Re: Fetching a data from mySQL - by whadez - 27.09.2017, 15:21
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 16:24
Re: Fetching a data from mySQL - by oMa37 - 27.09.2017, 16:28
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 16:32

Forum Jump:


Users browsing this thread: 3 Guest(s)