MySql error
#1

After Following the killer mysql tutorial i get this error

Код:
CMySQLHandler::Query(SELECT IP FROM 'playerdata' WHERE User = 'CoDeZ' LIMIT 1) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''playerdata' WHERE User = 'CoDeZ' LIMIT 1' at line 1)
And here is my Query

pawn Код:
new Query[200],p_Name[24];
MoneyGiven[playerid] = -1;
GetPlayerName(playerid,p_Name,24);
format(Query , sizeof(Query), "SELECT IP FROM 'playerdata' WHERE User = '%s' LIMIT 1",p_Name);
Help pl0x
Reply


Messages In This Thread
MySql error - by CoDeZ - 01.07.2012, 12:40
Re: MySql error - by Vince - 01.07.2012, 12:43
Re: MySql error - by CoDeZ - 01.07.2012, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)