MySQL Problem
#1

pawn Код:
format(Query,sizeof(Query),"SELECT * FROM playerdata WHERE Name=`%s` LIMIT 1",GetName(playerid));
    mysql_function_query(MySQLConnection,Query,true,"RFMySQL_CheckAccount","i",playerid);
This is the code

and this is mysql debug log
Код:
[19:16:04] Passing query SELECT * FROM playerdata WHERE Name=`CoDeZ` LIMIT 1 | i
[19:16:04] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()
What's wrong? :/
Reply
#2

Anyone? :/
Reply
#3

pl0x?
Reply
#4

Literal strings should be enclosed in single quotes ('), not backticks (`).
Reply
#5

Nothing can describe how am i grateful to you even though that was an epic fail mistake
Thank you, RP++.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)