help with mysql.
#5

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
You are doing it wrong. What are you fetching from here?:
pawn Код:
format(str,sizeof(str),"SELECT * FROM accounts WHERE username='%s'",pInfo[playerid][pName]);
The right way is this:
pawn Код:
new row, field, money;
cache_get_data(row, field, db);
if(rows == 1)
{
        cache_get_field_content_int(0,"Money", money, db);
}
but how should i fetch that? i mean... how could i get it from the username that i want?
i mean, whats the query comes before that getdata?
Reply


Messages In This Thread
help with mysql. - by Equality - 27.06.2014, 17:56
Re: help with mysql. - by Faisal_khan - 27.06.2014, 18:28
Re: help with mysql. - by Equality - 27.06.2014, 18:32
Re: help with mysql. - by Faisal_khan - 27.06.2014, 18:51
Re: help with mysql. - by Equality - 27.06.2014, 18:56
Re: help with mysql. - by Konstantinos - 27.06.2014, 19:03
Re: help with mysql. - by Faisal_khan - 27.06.2014, 19:04
Re: help with mysql. - by Equality - 27.06.2014, 19:06
Re: help with mysql. - by Faisal_khan - 27.06.2014, 19:18
Re: help with mysql. - by Equality - 27.06.2014, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)