29.01.2016, 12:13
Hello, can anyone find what i am doing wrong on this query:
It gives me this error in my mysql log:
Does anybody know what is going on because the query seems fine to me!
pawn Код:
format(Query, sizeof(Query), "SELECT * FROM Users WHERE Name='%s' AND Password='%s'", pName, HashPW);
mysql_tquery(Handle, Query, "PlayerAttemptLogin", "i", playerid);
Код:
[13:56:04] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FRO", callback: "PlayerAttemptLogin", format: "i" [13:56:04] [DEBUG] CMySQLQuery::Execute[PlayerAttemptLogin] - starting query execution [13:56:04] [ERROR] CMySQLQuery::Execute[PlayerAttemptLogin] - (error #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 'FRO' at line 1 [13:56:04] [DEBUG] CMySQLQuery::Execute[PlayerAttemptLogin] - error will be triggered in OnQueryError