Hab Folgendes Problem also der script will die tabellen nicht in die Datenbank speichern mir folgenen Script
willst ihr vieleicht warum das so ist ?
PHP-Code:
<? include('config.inc.php'); ?>
<?
MYSQL_CONNECT($dbhost, $dbuser, $dbpw) or die ( "Datenbankserver nicht erreichbar");
MYSQL_SELECT_DB($db) or die ( "Datenbank nicht vorhanden"); ?>
<?
$sql1 = 'CREATE TABLE `shimpmember` ( `nick` VARCHAR( 250 ) NOT NULL , `pass` VARCHAR( 250 ) NOT NULL , `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `name` VARCHAR( 250 ) NOT NULL , `alter` VARCHAR( 250 ) NOT NULL , `wohnort` VARCHAR( 250 ) NOT NULL , `email` VARCHAR( 250 ) NOT NULL , `icq` VARCHAR( 250 ) NOT NULL , `hp` VARCHAR( 250 ) NOT NULL , `likes` VARCHAR( 250 ) NOT NULL , `hates` VARCHAR( 250 ) NOT NULL , `cpu` VARCHAR( 250 ) NOT NULL , `board` VARCHAR( 250 ) NOT NULL , `ram` VARCHAR( 250 ) NOT NULL , `Graph` VARCHAR( 250 ) NOT NULL , `sound` VARCHAR( 250 ) NOT NULL , `mouse` VARCHAR( 250 ) NOT NULL , `monitor` VARCHAR( 250 ) NOT NULL , `connection` VARCHAR( 250 ) NOT NULL , `motto` LONGTEXT NOT NULL , `orga` VARCHAR( 250 ) NOT NULL , `member` VARCHAR( 250 ) NOT NULL , `trial` VARCHAR( 250 ) NOT NULL , `rang` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql2 = 'CREATE TABLE `shimpnews` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `ueber` VARCHAR( 250 ) NOT NULL , `download` VARCHAR( 250 ) NOT NULL , `text` LONGTEXT NOT NULL , `by` VARCHAR( 250 ) NOT NULL , `am` VARCHAR( 250 ) NOT NULL , `um` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql3 = 'CREATE TABLE `shimpwar` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `gegnername` VARCHAR( 250 ) NOT NULL , `gegnerhp` VARCHAR( 250 ) NOT NULL , `gegerchan` VARCHAR( 250 ) NOT NULL , `spielbericht` LONGTEXT NOT NULL , `wiehoch` VARCHAR( 250 ) NOT NULL , `winorlose` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql4 = 'CREATE TABLE `shimpgb` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `name` VARCHAR( 250 ) NOT NULL , `hp` VARCHAR( 250 ) NOT NULL , `wann` VARCHAR( 250 ) NOT NULL , `uhrzeit` VARCHAR( 250 ) NOT NULL , `email` VARCHAR( 250 ) NOT NULL , `icq` VARCHAR( 250 ) NOT NULL , `text` LONGTEXT NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql5 = 'CREATE TABLE `shimpserver` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `server` VARCHAR( 250 ) NOT NULL , `serverpw` VARCHAR( 250 ) NOT NULL , `servername` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql6 = 'CREATE TABLE `shimplinks` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `ad1` VARCHAR( 250 ) NOT NULL , `n1` VARCHAR( 250 ) NOT NULL , `ad2` VARCHAR( 250 ) NOT NULL , `n2` VARCHAR( 250 ) NOT NULL , `ad3` VARCHAR( 250 ) NOT NULL , `n3` VARCHAR( 250 ) NOT NULL , `ad4` VARCHAR( 250 ) NOT NULL , `n4` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql7 = 'CREATE TABLE `shimpumfrage` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `frage` VARCHAR( 250 ) NOT NULL , `antwort` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql8 = 'CREATE TABLE `shimperg` ( `id` VARCHAR( 250 ) NOT NULL , `ip` VARCHAR( 250 ) NOT NULL , UNIQUE ( `ip` ) ); ';
$sql9 = 'CREATE TABLE `shimpcomm` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `name` VARCHAR( 250 ) NOT NULL , `am` VARCHAR( 250 ) NOT NULL , `um` VARCHAR( 250 ) NOT NULL , `text` LONGTEXT NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql10 = 'CREATE TABLE `shimpforum` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `forum` VARCHAR( 250 ) NOT NULL , PRIMARY KEY ( `id` ) ); ';
$sql11 = 'CREATE TABLE `shimphistory` ( `id` TINYINT( 11 ) NOT NULL AUTO_INCREMENT, `text` LONGTEXT NOT NULL , PRIMARY KEY ( `id` ) ); ';
$result1 = mysql_query($sql1);
$result2 = mysql_query($sql2);
$result3 = mysql_query($sql3);
$result4 = mysql_query($sql4);
$result5 = mysql_query($sql5);
$result6 = mysql_query($sql6);
$result7 = mysql_query($sql7);
$result8 = mysql_query($sql8);
$result9 = mysql_query($sql9);
$result10 = mysql_query($sql10);
$result11 = mysql_query($sql11);
mysql_close();
header ("Location:install_2.php");
?>
Kommentar