Witam,mam problem z wykonaniem zapytania,nie mogę znaleźć błedu:
Kod:
CREATE TABLE `phpbb_adr_zones` (
`zone_id` INT( 8 ) DEFAULT '0' NOT NULL ,
`zone_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`zone_desc` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`zone_img` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`zone_element` VARCHAR( 255 ) NOT NULL ,
`zone_item` VARCHAR( 255 ) DEFAULT '0' NOT NULL ,
`cost_goto1` INT( 8 ) DEFAULT '0' NOT NULL ,
`cost_goto2` INT( 8 ) DEFAULT '0' NOT NULL ,
`cost_goto3` INT( 8 ) DEFAULT '0' NOT NULL ,
`cost_goto4` INT( 8 ) DEFAULT '0' NOT NULL ,
`cost_return` INT( 8 ) DEFAULT '0' NOT NULL ,
`goto1_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`goto2_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`goto3_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`goto4_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`return_name` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`zone_shops` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_forge` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_prison` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_temple` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_bank` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event1` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event2` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event3` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event4` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event5` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event6` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event7` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_event8` INT( 1 ) DEFAULT '0' NOT NULL ,
`zone_pointwin1` INT( 8 ) DEFAULT '0' NOT NULL ,
`zone_pointwin2` INT( 8 ) DEFAULT '0' NOT NULL ,
`zone_pointloss1` INT( 8 ) DEFAULT '0' NOT NULL ,
`zone_pointloss2` INT( 8 ) DEFAULT '0' NOT NULL ,
`zone_chance` INT( 8 ) DEFAULT '0' NOT NULL ,
`npc_price` INT( 8 ) DEFAULT '0' NOT NULL ,
`npc1_enable` INT( 1 ) DEFAULT '0' NOT NULL ,
`npc2_enable` INT( 1 ) DEFAULT '0' NOT NULL ,
`npc3_enable` INT( 1 ) DEFAULT '0' NOT NULL ,
`npc4_enable` INT( 1 ) DEFAULT '0' NOT NULL ,
`npc5_enable` INT( 1 ) DEFAULT '0' NOT NULL ,
`npc1_message` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`npc2_message` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`npc3_message` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`npc4_message` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
`npc5_message` VARCHAR( 255 ) DEFAULT '' NOT NULL ,
PRIMARY KEY ( `zone_id` )
) TYPE = MYISAM
INSERT INTO phpbb_adr_zones ( zone_id , zone_name , zone_desc, zone_img , zone_element, cost_goto1, cost_goto2, cost_goto3, cost_goto4, cost_return, goto1_name, goto2_name, goto3_name, goto4_name, return_name, zone_shops , zone_forge , zone_prison , zone_temple, zone_bank, zone_event1, zone_event2, zone_event3, zone_event4, zone_event5, zone_event6, zone_event7, zone_event8, zone_pointwin1, zone_pointwin2, zone_pointloss1, zone_pointloss2, zone_chance, npc_price, npc1_enable, npc2_enable, npc3_enable, npc4_enable, npc5_enable, npc1_message, npc2_message, npc3_message, npc4_message, npc5_message ) VALUES ( 1 , 'zone 1' , 'description1' , 'Zone_1' , 'element test' , 0 , 0 , 0 , 0 , 0 , 'zone 1' , '' , '' , '' , '' , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 , 20 , 10 , 20 , 20 , 0 , 1 , 0 , 0 , 0 , 0 , 'this is a test message' , '' , '' , '' , '' );
A oto komunikat błedu:
Kod:
#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 'INSERT INTO phpbb_adr_zones( zone_id, zone_name, zone_desc, zo
Bardzo proszę o pomoc i z góry dziękuję.