ichv erzweifel grad an der abfrage
Code:
if($checkvar=="artikel_typ_hinzu"){
echo" <h2> Artikeltyp hinzufügen</h2> </br> \n";
echo" <table border=\"0\"> ";
echo" <tr>";
echo" <th>";
echo" <form action=\"artikel_menue.php?checkvar=artikel_hinzu_gefugt\" method=\"POST\">
Artikel typ : <input type=\"text\" name=\"artikel_typ\"></br></br>
<input type=\"submit\" value=\"Typen hinzufügen\"";
echo" </th>";
echo" </tr>";
echo" </table>";
};
$typ= $_POST["artikel_typ"];
echo "$typ";
if($checkvar=="artikel_hinzu_gefugt"){
echo"blub";
mysql_query("create table \"$typ\" (name char(30) , preis float(00000,00), anzahl int(10))",$db_link);
echo "blub2";
das foormular erscheint , wie es sein soll , das erste echo erscheint , das 2te echo erscheint und das dritte auch , doch der erstellt mir keine tabelle , warum? die mysql abfrage funktioniert , wenn ich das mit dem typ in nen normalen namen änder , aber warum gehts hier nich?