26.01.2012, 17:46
Hi!
This is my code.
The MySQL debug gives me this:
Help?
pawn Код:
format(sisestus, sizeof(sisestus), "INSERT INTO logi (aeg,logi) VALUES('%d-%d-%d kell:%d:%d:%d','%s'", paev, kuu, aasta, tund, minut, sekund, string);
mysql_query(sisestus);
The MySQL debug gives me this:
Код:
[20:44:33] CMySQLHandler::Query(INSERT INTO logi (aeg,logi) VALUES('26-1-2012 kell:20:44:33','[OOC] Administraator Vladimir Koljanov: test.') - 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 '' at line 1)