mysql_connect($_POST['host'],$_POST['user'], $_POST['pass']);
mysql_select_db($_POST['db']);
$que ="DROP TABLE IF EXISTS `design_link`;
CREATE TABLE `design_link` (
`id` double unsigned NOT NULL auto_increment,
`sorter` varchar(100) NOT NULL default '1',
`navn` varchar(100) NOT NULL default '',
`vis` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
--
-- Dumping data for table `nn`.`design_link`
--
/*!40000 ALTER TABLE `design_link` DISABLE KEYS */;
INSERT INTO `design_link` (`id`,`sorter`,`navn`,`vis`) VALUES
(1,'1','Forside',1),
(2,'1','sdsds',1);
/*!40000 ALTER TABLE `design_link` ENABLE KEYS */;
--
-- Table structure for table `nn`.`design_login`
--
DROP TABLE IF EXISTS `design_login`;
CREATE TABLE `design_login` (
`id` double unsigned NOT NULL auto_increment,
`user` varchar(100) NOT NULL default '',
`password` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
--
-- Dumping data for table `nn`.`design_login`
--
/*!40000 ALTER TABLE `design_login` DISABLE KEYS */;
INSERT INTO `design_login` (`id`,`user`,`password`) VALUES
(2,'admin','ds123er8');
/*!40000 ALTER TABLE `design_login` ENABLE KEYS */;
--
-- Table structure for table `nn`.`design_side`
--
DROP TABLE IF EXISTS `design_side`;
CREATE TABLE `design_side` (
`sorter` varchar(100) NOT NULL default '2',
`side_navn` varchar(100) NOT NULL default '',
`id` double unsigned NOT NULL auto_increment,
`side_id` varchar(100) NOT NULL default '',
`html` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
--
-- Dumping data for table `nn`.`design_side`
--
/*!40000 ALTER TABLE `design_side` DISABLE KEYS */;
INSERT INTO `design_side` (`sorter`,`side_navn`,`id`,`side_id`,`html`) VALUES
('2','Forside',1,'1','hej');
/*!40000 ALTER TABLE `design_side` ENABLE KEYS */;
";
mysql_query($que);
Den vil ikke køre mysql_query(); det er som om den ikke kan finde $que
Mvh
Simon Jensen