19.09.2011, 22:54
Quote:
Your syntax is a little strange, you don't need those quotes around the column name and you should use the other quotes around the table name, for example:
pawn Код:
|
pawn Код:
new query[195];
format(query, sizeof(query), "INSERT INTO 'acodes' (thecode) VALUES ('%s')", string);
mysql_query(string);
Quote:
Error (0): Failed to exeute query. 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 '9cSV395Y5AEw' at line 1 |