mySQL Issue
#1

stock IsPlayerRegistered(playername[])
{
new szQuery[512];

format(szQuery, sizeof(szQuery), "SELECT * FROM `phpbb_users` WHERE `username` = '%s'", playername);
SendQuery(szQuery);

mysql_store_result();

if (mysql_num_rows() == 0)
return false;

return true;
}







That code look alright?
I'm logging in with my username and it's saying unregistered. :/
Reply


Messages In This Thread
mySQL Issue - by Moglizorz. - 11.11.2010, 20:40
Re: mySQL Issue - by Lenny the Cup - 11.11.2010, 22:49

Forum Jump:


Users browsing this thread: 1 Guest(s)