par
supercanard » 13 oct. 2007, 18:54
Vu que pour l'instant j'en ai que deux, j'ai pas trop de problèmes, voilà mes tables :
// CREATION TABLE PAGES
$req= mysql_query("CREATE TABLE if not exists bloom_pages (
`id` int(11) NOT NULL auto_increment,
`nom` varchar (25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`contenu` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nom_lien` varchar (25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`pos_lien` int(11) NOT NULL,
`visible` int(1) NOT NULL,
PRIMARY KEY (`id`)
)ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
$req= mysql_query("INSERT INTO bloom_pages (id,nom,contenu,nom_lien,pos_lien,visible) VALUES ('','index','<h1>Bienvenue sur votre BloOm CMS !</h1><p>Ceci est votre page d\'accueil. Connectez-vous pour administrer BloOm CMS !.</p>','Accueil','0','1')");
// CREATION TABLE CONFIG
$req= mysql_query("CREATE TABLE if not exists bloom_config (
`id` int(1) NOT NULL,
`titre` varchar (50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`description` varchar (250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`motscles` varchar (250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`css` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
)ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
$req= mysql_query("INSERT INTO bloom_config (id,titre,description,motscles,css) VALUES ('1', 'BloOm CMS !', 'Le petit CMS simple et léger !', 'bloom,cms,xhtml,css,php', '/* Votre code CSS */')");
Vu que pour l'instant j'en ai que deux, j'ai pas trop de problèmes, voilà mes tables :
[php]// CREATION TABLE PAGES
$req= mysql_query("CREATE TABLE if not exists bloom_pages (
`id` int(11) NOT NULL auto_increment,
`nom` varchar (25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`contenu` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nom_lien` varchar (25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`pos_lien` int(11) NOT NULL,
`visible` int(1) NOT NULL,
PRIMARY KEY (`id`)
)ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
$req= mysql_query("INSERT INTO bloom_pages (id,nom,contenu,nom_lien,pos_lien,visible) VALUES ('','index','<h1>Bienvenue sur votre BloOm CMS !</h1><p>Ceci est votre page d\'accueil. Connectez-vous pour administrer BloOm CMS !.</p>','Accueil','0','1')");
// CREATION TABLE CONFIG
$req= mysql_query("CREATE TABLE if not exists bloom_config (
`id` int(1) NOT NULL,
`titre` varchar (50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`description` varchar (250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`motscles` varchar (250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`css` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
)ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
$req= mysql_query("INSERT INTO bloom_config (id,titre,description,motscles,css) VALUES ('1', 'BloOm CMS !', 'Le petit CMS simple et léger !', 'bloom,cms,xhtml,css,php', '/* Votre code CSS */')");[/php]