08.06.2015, 12:41
PHP код:
format(query, sizeof(query), "INSERT INTO houses (id, EntranceX, EntranceY, EntranceZ, ExitX, ExitY, ExitZ, InsideInt, owner, owned, price, text) VALUES ('%i', '%f', '%f', '%f', '%f', '%f', '%f', '%i', None, false, '%i', '%s')", id, x, y, z, exitx, exity, exitz, interior, price, draw);
Код:
[14:03:34] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:03:35] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:03:35] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:03:35] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:20:06] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:20:07] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:20:07] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:20:07] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061) [14:30:25] [ERROR] CMySQLQuery::Execute - (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 ''1022.479980' at line 1
Server log (debugg):
Код:
[14:37:29] [Query]: '/INSERT INTO houses (id, EntranceX, EntranceY, EntranceZ, ExitX, ExitY, ExitZ, InsideInt, owner, owned, price, text) VALUES ('1', '1419.790649', '-1623.835815', '13.546875', '225.630996', '1022.479980/'