Ina: Sonderzeichen in Tabelle anlegen

Beitrag lesen

Hallo Thorsten

Also ich habe

$domain = "www.neue-domain-de";
$domain_q = $dbh->quote($domain);

$dbh->do("INSERT INTO hallo (kennz, sitze, email) VALUES ($kennz_q, $sitze, $domain_q)");

funktioniert ja.
----------------------------

Nur.:

$newtable = "www.neue-domain-de";
$newtable_quote = $dbh->quote($newtable);

$dbh->do("CREATE TABLE $newtable_quote  (
      ID INTEGER AUTO_INCREMENT,
      kennz VARCHAR(20),
      sitze INTEGER,
      email VARCHAR(20),
      PRIMARY KEY (ID))"
      ) or die $dbh->errstr();

funktioniert nicht

MFG

Ina