Warum ändert er die Datei nicht?
PHP-Code:
<?php
require_once("../includes/funcs.php");
if($edit != "" && $edit){
mysql_query("UPDATE `cv_werbung` SET INHALT='".$inhalt."' WHERE ID='".id."'");
echo mysql_error();
//header("Location: w_show.php?cat=".$cat);
die();
}
$query = mysql_query("SELECT * FROM `cv_werbung` WHERE ID='".$id."' LIMIT 1");
$werbung = mysql_fetch_object($query);
?>
<html>
<body bgcolor=#ffffff text=#000000 link=#FF0000 alink=#FF0000 vlink=#FF0000>
<font face=verdana size=2>
<div align="center">
<table align="center">
<form action="w_edit.php?edit=ja&id=<?php echo $id; ?>&cat=<? echo $cat; ?>" method="post" name="werbung">
<BR>
<table align=center>
<tr><td><b><font face=verdana size=2>Name:</font></b></td><td><input type=text name="titel" value="<?php echo $werbung->TITEL; ?>"></td></tr>
<tr><td><b><font face=verdana size=2>Hits:</font></b></td><td><input type=text name="hits" value="<?php echo $werbung->HITS; ?>"></td></tr>
<tr><td valign=top><b><font face=verdana size=2>Code:</font></b></td><td><textarea name="inhalt" cols=30 rows=6><?php echo $werbung->INHALT; ?></textarea></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Ändern"></td></tr>
</table>
<BR>
</form>
</table>
Kommentar