Even een update.. het is me nu gelukt om al een aantal tabellen in te voeren.. maar bij 3 tabellen blijf ik een error krijgen het gaat om deze :
Bij de tabel invoer :
Code: Selecteer alles
CREATE TABLE iNA_CAT ( cat_id mediumint(8) NOT NULL auto_increment,
mod_id mediumint(8) default NULL,
name varchar(100) default NULL,
desc text,
icon varchar(255) default NULL,
special_play smallint(5) NOT NULL default '0',
last_game varchar(25) default NULL,
last_player mediumint(8) default NULL,
last_time int(11) default NULL );
Krijg ik deze error :
Code: Selecteer alles
Fout
SQL-query :
CREATE TABLE iNA_CAT(
cat_id mediumint( 8 ) NOT NULL AUTO_INCREMENT ,
mod_id mediumint( 8 ) default NULL ,
name varchar( 100 ) default NULL ,
DESC text,
icon varchar( 255 ) default NULL ,
special_play smallint( 5 ) NOT NULL default '0',
last_game varchar( 25 ) default NULL ,
last_player mediumint( 8 ) default NULL ,
last_time int( 11 ) default NULL
)
MySQL retourneerde:
#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 'DESC text,
icon varchar( 255 ) default NULL ,
special_play sma
En bij invoer van deze tabel :
Code: Selecteer alles
CREATE TABLE iNA_TOUR (tour_id mediumint(5) NOT NULL auto_increment,
tour_name varchar(25) default NULL,
tour_desc text);
Krijg ik deze error :
Code: Selecteer alles
Fout
SQL-query :
CREATE TABLE iNA_TOUR(
tour_id mediumint( 5 ) NOT NULL AUTO_INCREMENT ,
tour_name varchar( 25 ) default NULL ,
tour_desc text
)
MySQL retourneerde:
#1075 - Incorrect table definition; There can only be one auto column and it must be defined as a key
En als laatste bij deze :
Code: Selecteer alles
INSERT INTO iNA VALUES ('v2.0.6');
INSERT INTO iNA_GAMES (`game_id`, `game_name`, `game_path`, `image_path`, `game_desc`, `game_charge`, `game_reward`, `game_bonus`, `game_use_gl`, `game_flash`, `game_show_score`, `win_width`, `win_height`, `highscore_limit`, `reverse_list`, `played`, `instructions`, `game_avail`, `allow_guest`, `cat_id`) VALUES (1, 'donkeykong', 'games/donkeykong/', '', 'The Classic - Donkey Kong', 0, 0, 0, 0, 1, 1, 448, 600, 0, 0, 0, 'CLICK where it says \'Press Space Bar To Start\' to start the game :(', 1, 1, NULL);
INSERT INTO phpbb_config VALUES ('default_reward_dbfield','');
INSERT INTO phpbb_config VALUES ('default_cash','');
INSERT INTO phpbb_config VALUES ('use_rewards_mod','0');
INSERT INTO phpbb_config VALUES ('use_cash_system','0');
INSERT INTO phpbb_config VALUES ('report_cheater','0');
INSERT INTO phpbb_config VALUES ('warn_cheater','0');
INSERT INTO phpbb_config VALUES ('use_point_system','0');
INSERT INTO phpbb_config VALUES ('use_gamelib','0');
INSERT INTO phpbb_config VALUES ('games_path','');
INSERT INTO phpbb_config VALUES ('gamelib_path','');
INSERT INTO phpbb_config VALUES ('use_gk_shop','0');
INSERT INTO phpbb_config VALUES ('use_allowance_system','0');
INSERT INTO phpbb_config VALUES ('games_per_page','20');
INSERT INTO phpbb_config VALUES ('games_default_img','templates/subSilver/images/games.gif');
INSERT INTO phpbb_config VALUES ('games_default_txt','More games available to Registered Members - No Fee - No Catch.<br />');
INSERT INTO phpbb_config VALUES ('games_default_id','0');
INSERT INTO phpbb_config VALUES ('games_offline','0');
INSERT INTO phpbb_config VALUES ('games_cheat_mode','1');
INSERT INTO phpbb_config VALUES ('games_guest_highscore', '1');
INSERT INTO phpbb_config VALUES ('games_auto_size', '1');
INSERT INTO phpbb_config VALUES ('games_at_highscore', '1');
INSERT INTO phpbb_config VALUES ('games_show_stats', '1');
INSERT INTO phpbb_config VALUES ('games_image_width', '50');
INSERT INTO phpbb_config VALUES ('games_image_height', '50');
INSERT INTO phpbb_config VALUES ('games_per_admin_page', '');
Krijg ik deze error :
Code: Selecteer alles
Fout
SQL-query :
INSERT INTO iNA_GAMES( `game_id` , `game_name` , `game_path` , `image_path` , `game_desc` , `game_charge` , `game_reward` , `game_bonus` , `game_use_gl` , `game_flash` , `game_show_score` , `win_width` , `win_height` , `highscore_limit` , `reverse_list` , `played` , `instructions` , `game_avail` , `allow_guest` , `cat_id` )
VALUES ( 1, 'donkeykong', 'games/donkeykong/', '', 'The Classic - Donkey Kong', 0, 0, 0, 0, 1, 1, 448, 600, 0, 0, 0, 'CLICK where it says \'Press Space Bar To Start\' to start the game :(', 1, 1, NULL )
MySQL retourneerde:
#1062 - Duplicate entry '1' for key 1
Wie oh wie kan mij hiermee helpen ?