13.03.2013, 18:47
My query line is wrong,and I just can not find the problem,can you?
pawn Код:
format(query2,sizeof(query2),"UPDATE Drugs SET Receptai = 0, '%s' = 1 WHERE Username = '%s'",Preke,Name);
pawn Код:
:30] CMySQLHandler::Query(UPDATE Drugs SET Receptai = 0, 'Ambroxolis' = 1 WHERE Username ) - 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 ''Ambroxolis' = 1 WHERE Username' at line 1)