Query Table
#1

Hy,i have this code and my question is why she dont give me result? she tell me that is 0 result in db,but i know as the result are prezent in db.

Код:
new string[128];
GetPlayerName(playerid,username,sizeof(username));
format(string, sizeof(string), "SELECT * FROM users WHERE name = '%s'", username);
mysql_query(string);
mysql_store_result(query); 
new rows = mysql_num_rows(result);
Reply


Messages In This Thread
Query Table - by cristip - 17.04.2013, 19:32
Re: Query Table - by Scenario - 17.04.2013, 19:33
Re: Query Table - by Vince - 17.04.2013, 19:34
Re: Query Table - by cristip - 17.04.2013, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)