Hallo, ich habe ein Problem bei meinen Script,
wenn ich neue texte in meine SQL tabelle einfüge passiert nichts 
Delete Funktion Funktioniert auch nicht
und die Update Kunktion auch nicht.
// Server
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch15 Server at 84.23.67.202 Port 80
// Scripts
es sind 5 Scripte
db.php
	
	
		<?
$dbname="cds";
$dbhost="localhost";
$dbuser="root";
$dbpass="****";
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname);
?>
	
			Alles anzeigen
	 
createta.php
	
	
		<?
include ("db.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";
?>
	
			Alles anzeigen
	 
insert.php
	
	
		<!-insert.php->
<html>
<body>
<?PHP
if ($button==" OK ") {
 include("db.php");
 mysql_query("INSERT INTO
 cds(titel,interpret)VALUES('$titel','$interpret')");
 mysql_close();
 ?>
 Die Daten wurden eingetragen<br>
 <a href="insert.php">neuer Eintrag</a><br>
 <a href="fetcharr.php">zur Übersicht</a>
 <?PHP
} else { ?>
 <form method="post" action="insert.php">
 <input type="text" name="interpret" value="interpret"><br>
 <input type="text" name="titel" value="titel"><br>
 <input type="submit" name="button" value=" OK ">
 </form>
 <?PHP
} ?>
</body>
</html>
	
			Alles anzeigen
	 
fechtarr.php
	
	
		<!-fechtarr.php->
<html>
<body>
<table>
<?PHP include ("db.php");
$query = "SELECT * FROM cds";
$result = mysql_query($query);
while ($line = mysql_fetch_array($result)) { ?>
 <tr>
 <td><?PHP echo $line[interpret];?></td>
 <td><?PHP echo $line[titel];?></td>
 <td><a href="update.php?id=<?PHP echo $line[id];?>">Edit</a></td>
 <td><a href="delete.php?id=<?PHP echo $line[id];?>">Delete</a></td>
 </tr>
 <?PHP
}
mysql_free_result($result);
mysql_close();
?>
</table><br>
<a href="insert.php">neuer Eintrag</a>
</body>
</html>
	
			Alles anzeigen
	 
delete.php
	
	
		<!-delete.php->
<html>
<body>
<?php include ("db.php");
mysql_query("DELETE FROM cds WHERE id='$id'");
mysql_close();
?>
 
Die Daten wurden gelöscht<br>
<a href="fetcharr.php">zur Übersicht</a>
<body>
<html>
	
			Alles anzeigen
	 
update.php
	
	
		<!-update.php->
<html>
<body>
<?PHP include("db.php");
if ($button==" OK ") {
 mysql_query("UPDATE cds SET interpret='$interpret',  titel='$titel' WHERE id='$id'");
 mysql_close();
 ?>
 Die Daten wurden eingetragen<br>
 <a href="fetcharr.php">zur Übersicht</a>
<? } else {
 $query = "SELECT * FROM cds WHERE id='$id'";
 $result = mysql_query($query);
 $line = mysql_fetch_array($result)
 ?>
 <form method="post" action="update.php?id=<?PHP echo $id; ?>">
 <input type="text" name="interpret" value="<?PHP echo $line[interpret]; ?>"><br>
 <input type="text" name="titel" value="<?PHP echo $line[titel]; ?>"><br>
 <input type="submit" name="button" value=" OK ">
 </form>
<? } ?>
</body>
</html>
	
			Alles anzeigen
	 
MfG xxiraki