un hab ich das nächste prob...
eine probedatei zur anlegung (aus einem tutorial) klappt zu 100% und legt eine tabelle an
die zweite von mir angelegte datei funzt ohne error-ausgabe, jedoch wird auch keine tabelle angelegt
obwohl beide bis auf tabellenwerte identisch sind
eine probedatei zur anlegung (aus einem tutorial) klappt zu 100% und legt eine tabelle an
PHP:
<?
include ("config.php");
mysql_query("CREATE TABLE cds (
id int(255) NOT NULL auto_increment,
interpret varchar(100) NOT NULL,
titel varchar(100) NOT NULL,
PRIMARY KEY (id)
);");
mysql_close();
echo "Die Tabelle wurde angelegt";
?>
PHP:
<?
include ("config.php");
mysql_query("CREATE TABLE cdss (
id int(255) NOT NULL auto_increment,
potenzial int(2),
ladestelle int(2),
fa-name1 varchar(40) NOT NULL,
fa-name2 varchar(40),
fa-name3 varchar(40),
strasse varchar(50),
land int(3) NOT NULL,
plz int(5) int(5) NOT NULL,
stadt varchar(30) NOT NULL,
laendervorwahl int(4) NOT NULL,
vorwahl int(8) NOT NULL,
telenr character(15) NOT NULL,
faxnr varchar(20),
email varchar(60),
infos text,
PRIMARY KEY (id)
);");
mysql_close();
echo "Die Tabelle wurde angelegt";
?>
eijo klar was sonst. Sorry hätte ich mit hinschreiben sollen.