28.07.2012, 14:14
INSERT INTO `Bans` SET `BanUserName` = '%s',`BanUserIp` = '%s',`BanAdministratorName` = '%s',`BanReason` = '%s',`BanTime` = '%i'
INSERT INTO `Bans`(BanUserName, BanUserIp, BanAdministratorName, BanReason, BanTime) VALUES ('%s', '%s', '%s', '%s', '%d')
This is your query fixed
--
INSERT INTO bans (time, reason, nickname) VALUES ('%d', '%s', '%s')
This is the correct query if you want to add into "bans" table
( time, reason, nickname ) -> where add values?
( values ) -> values
INSERT INTO `Bans`(BanUserName, BanUserIp, BanAdministratorName, BanReason, BanTime) VALUES ('%s', '%s', '%s', '%s', '%d')
This is your query fixed
--
INSERT INTO bans (time, reason, nickname) VALUES ('%d', '%s', '%s')
This is the correct query if you want to add into "bans" table
( time, reason, nickname ) -> where add values?
( values ) -> values