CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;
INSERT INTO `pcms_config` VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf');
INSERT INTO `pcms_config` VALUES ('header', 'Mijn website');
INSERT INTO `pcms_config` VALUES ('template', 'Simple');
INSERT INTO `pcms_config` VALUES ('pcms_title', 'PCMS 2.0');
INSERT INTO `pcms_config` VALUES ('pcms_version', '2.0');
CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;
INSERT INTO `pcms_pages` VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');
CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY(`name`)) TYPE=MyISAM;
INSERT INTO `pcms_config` VALUES ('pass','c1101c86e7b7a604ff93ba4d99017ccf');
INSERT INTO `pcms_config` VALUES ('header','Mijn website');
INSERT INTO `pcms_config` VALUES ('template','Simple');
INSERT INTO `pcms_config` VALUES ('pcms_title','PCMS 2.0');
INSERT INTO `pcms_config` VALUES ('pcms_version','2.0');
CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY(`name`)) TYPE=MyISAM;
INSERT INTO `pcms_pages` VALUES ('Home','Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');
maar ik krijg de volgende foutmelding:
Citaat:
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 `pcms_config` VALUES ('pass', 'c1101c86e7b7a604ff9
CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header', 'Mijn website');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template', 'Simple');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title', 'PCMS 2.0');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version', '2.0');
CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;
INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');
CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY(`name`)) TYPE=MyISAM;
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass','c1101c86e7b7a604ff93ba4d99017ccf');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header','Mijn website');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template','Simple');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title','PCMS 2.0');
INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version','2.0');
CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY(`name`)) TYPE=MyISAM;
INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home','Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');
$query ="CREATE TABLE `".$dbPrefix."config` (`name` varchar(40) NOT NULL,`value`";
$query.=" varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pass', '".sha1(md5($_POST['pass']))."');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('header', 'Mijn website');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('template', 'Simple');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_title', 'PCMS 2.0');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_version', '2.0');\n";
$query.="CREATE TABLE `".$dbPrefix."pages` (`name` varchar(32) NOT NULL,`content`";
$query.=" text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;\n";
$query.="INSERT INTO `".$dbPrefix."pages` VALUES ('Home', ";
$query.="'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');";
echo "<pre><b>".$query."</b></pre><br>\n";
mysql_query($query) or die(mysql_error());
$query="CREATE TABLE `".$dbPrefix."config` (`name` varchar(40) NOT NULL,`value`";
$query.=" varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pass', '".sha1(md5($_POST['pass']))."');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('header', 'Mijn website');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('template', 'Simple');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_title', 'PCMS 2.0');\n";
$query.="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_version', '2.0');\n";
$query.="CREATE TABLE `".$dbPrefix."pages` (`name` varchar(32) NOT NULL,`content`";
$query.=" text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;\n";
$query.="INSERT INTO `".$dbPrefix."pages` VALUES ('Home', ";
$query.="'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');";
<?php
mysql_query(
"CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header', 'Mijn website')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template', 'Simple')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title', 'PCMS 2.0')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version', '2.0')";
"CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM";
"INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!')") or die("1: ".mysql_error());
?>
"CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header', 'Mijn website')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template', 'Simple')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title', 'PCMS 2.0')";
"INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version', '2.0')";
"CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM";
"INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!')") or die("1: ".mysql_error());
<?php
mysql_query("CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header', 'Mijn website')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template', 'Simple')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title', 'PCMS 2.0')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version', '2.0')") or die("1: ".mysql_error());
mysql_query("CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!')") or die("1: ".mysql_error());
?>
<?php
mysql_query("CREATE TABLE `pcms_config` (`name` varchar(32) NOT NULL,`value` varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pass', 'c1101c86e7b7a604ff93ba4d99017ccf')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('header', 'Mijn website')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('template', 'Simple')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_title', 'PCMS 2.0')") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_config` (`name`, `value`) VALUES ('pcms_version', '2.0')") or die("1: ".mysql_error());
mysql_query("CREATE TABLE `pcms_pages` (`name` varchar(32) NOT NULL,`content` text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM") or die("1: ".mysql_error());
mysql_query("INSERT INTO `pcms_pages` (`name`, `content`) VALUES ('Home', 'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!')") or die("1: ".mysql_error());
<?php
$query1 ="CREATE TABLE `".$dbPrefix."config` (`name` varchar(40) NOT NULL,`value`";
$query1.=" varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;";
$query2 ="INSERT INTO `".$dbPrefix."config` VALUES ('pass', '".sha1(md5($_POST['pass']))."');";
$query3 ="INSERT INTO `".$dbPrefix."config` VALUES ('header', 'Mijn website');";
$query4 ="INSERT INTO `".$dbPrefix."config` VALUES ('template', 'Simple');";
$query5 ="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_title', 'PCMS 2.0');";
$query6 ="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_version', '2.0');";
$query7 ="CREATE TABLE `".$dbPrefix."pages` (`name` varchar(32) NOT NULL,`content`";
$query7.=" text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;";
$query8 ="INSERT INTO `".$dbPrefix."pages` VALUES ('Home', ";
$query8.="'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');";
mysql_query($query1) or die("1: ".mysql_error());
mysql_query($query2) or die("2: ".mysql_error());
mysql_query($query3) or die("3: ".mysql_error());
mysql_query($query4) or die("4: ".mysql_error());
mysql_query($query5) or die("5: ".mysql_error());
mysql_query($query6) or die("6: ".mysql_error());
mysql_query($query7) or die("7: ".mysql_error());
mysql_query($query8) or die("8: ".mysql_error());
?>
<?php
$query1="CREATE TABLE `".$dbPrefix."config` (`name` varchar(40) NOT NULL,`value`";
$query1.=" varchar(32) NOT NULL,PRIMARY KEY (`name`) ) TYPE=MyISAM;";
$query2="INSERT INTO `".$dbPrefix."config` VALUES ('pass', '".sha1(md5($_POST['pass']))."');";
$query3="INSERT INTO `".$dbPrefix."config` VALUES ('header', 'Mijn website');";
$query4="INSERT INTO `".$dbPrefix."config` VALUES ('template', 'Simple');";
$query5="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_title', 'PCMS 2.0');";
$query6="INSERT INTO `".$dbPrefix."config` VALUES ('pcms_version', '2.0');";
$query7="CREATE TABLE `".$dbPrefix."pages` (`name` varchar(32) NOT NULL,`content`";
$query7.=" text NOT NULL, PRIMARY KEY (`name`)) TYPE=MyISAM;";
$query8="INSERT INTO `".$dbPrefix."pages` VALUES ('Home', ";
$query8.="'Klik op de \'PCMS\'-link om te beginnen met het maken van je site!');";