Grave-Digger
Banned
- Registriert
- Juni 2005
- Beiträge
- 253
Ich hab hier nen großes Problem, der will meinen INSERT befehl nich amchen:
http://www.itpro-forum.de/test/ams_add_band.php
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Neue Band hinzufügen</title>
</head>
<body>
<div align="center">
<p>
<?php
include('config.php');
foreach($_POST as $key=>$element)
{ ${"ams_".$key} = $element; }
if(isset($_POST['submit'])){
mysql_query("INSERT into ams_allbands (band,genre), VALUES('$ams_band','$ams_genre')");
mysql_query("INSERT into ams_letters (letter), VALUES('$ams_letter') WHERE letter = $ams_letter");
echo $add;
}
?>
</p>
<p><a href="ams_index.php">Zurück.</a> <a href="ams_add_band.php">Neue Band hinzufügen</a></p>
</div>
<form method="post" action="ams_add_band.php">
<div align="center">
<table width="50%" border="0" cellspacing="2" cellpadding="2">
<!--DWLayoutTable-->
<tr>
<td width="23%" height="23">Bandname:</td>
<td width="385" valign="top"><input name="band" type="text" value="band" size="35"></td>
</tr>
<tr>
<td height="23">Kurzbuchstabe:</td>
<td valign="top"><input name="letter" type="text" value="letter" size="35"></td>
</tr>
<tr>
<td height="23">Musikrichtung:</td>
<td valign="top"><input name="genre" type="text" value="genre" size="35"></td>
</tr>
</table>
<br>
<input name="submit" type="submit" value="Hinzufügen">
</div>
</form>
</body>
</html>
http://www.itpro-forum.de/test/ams_add_band.php