[14:57:27] [plugins/mysql] error #1064 while executing query "INSERT INTO kontagraczy(name,password,skinid,bank,plec,wiek,vip,frakcja,money) VALUES ('chujekmujek','074A79ACBBF54463DEDB0E182E28054251E2B363A70D41ABE8143FDA62E7521D934C3074A87F81146F2F9F81A3C63017E349F409578305EE5D5A4A6839DCE579','6','0','1','23','0','0',": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
strcat(query, "INSERT INTO `kontagraczy` (");
//
strcat(query, "`name`,");
strcat(query, "`password`,");
strcat(query, "INSERT INTO `kontagraczy` (");
//
strcat(query, "`name`,");
strcat(query, "`password`,");
strcat(query, "`skinid`,");
strcat(query, "`bank`,");
strcat(query, "`plec`,");
strcat(query, "`wiek`,");
strcat(query, "`vip`,");
strcat(query, "`frakcja`,");
strcat(query, "`money`");
Thanks for the answer, unfortunately it did not help ...
PHP код:
|
strcat(query, "INSERT INTO `kontagraczy` ("); // strcat(query, "`name`varbinary(30) NOT NULL,"); strcat(query, "`password`varbinary(30) NOT NULL,"); strcat(query, "`skinid`int(3) NOT NULL,"); strcat(query, "`bank`int(12) NOT NULL,"); strcat(query, "`plec`int(12) NOT NULL,"); strcat(query, "`wiek`int(12) NOT NULL,"); strcat(query, "`vip`int(12) NOT NULL,"); strcat(query, "`frakcja`int(12) NOT NULL,"); strcat(query, "`money`int(12) NOT NULL"); strcat(query, ") ENGINE = InnoDB CHARACTER SET=utf8");
[15:36:41] [plugins/mysql] error #1064 while executing query "INSERT INTO `kontagraczy` (`name`varbinary(30) NOT NULL,`password`varbinary(30) NOT NULL,`skinid`int(3) NOT NULL,`bank`int(12) NOT NULL,`plec`int(12) NOT NULL,`wiek`int(12) NOT NULL,`vip`int(12) NOT NULL,`frakcja`int(12) NOT NULL,`money`int(12) NOT NULL) E": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'varbinary(30) NOT NULL,`password`varbinary(30) NOT NULL,`skinid`int(3) NOT NULL,' at line 1
Its simple, your "new string[258]" is smaller size than your actual query length, which causes Syntax error. Increase it to like 512, depending on your query size basically!
|