MySQL Log problem
#1

Hi!

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);
This is my code.

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)
Help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)