if ($_GET['do']=="edit") {
$txt = $_POST['text'];
if (isset($txt)) {
include "../config.php";
$connect=mysql_connect("$host","$user","$pass");
mysql_select_db("$db");
$id = $_POST['id'];
$header = $_POST['header'];
$hot = $_POST['hot'];
$objektid = $_POST['objektid'];
$ort = $_POST['ort'];
$lage = $_POST['lage'];
$preis1 = $_POST['preis1'];
$preis2 = $_POST['preis2'];
$preis3 = $_POST['preis3'];
$bilder = $_POST['bilder'];
$url1 = $_POST['url1'];
$url2 = $_POST['url2'];
$url3 = $_POST['url3'];
$url4 = $_POST['url4'];
$url5 = $_POST['url5'];
echo $header;
$ind=1;
$update = mysql_query("UPDATE `property` SET `header` = '".$header."',`hot` = '".$hot."',`objektid` = '".$objektid."', `preis1` = '".$preis1."', `preis2` = '".$preis2."',`preis3` = '".$preis3."', `text` = '".$txt."' WHERE `id` = '".$id."'") or die(mysql_error());
mysql_close($connect);
echo'
<tr>
<th colspan="4" bgcolor="#E2E2E2"></th>
</tr>
<tr>
<th colspan="4" bgcolor="#FFFFFF"><p><span style="color:#ff0000">Erfolgreich editiert!</span></p></th>
</tr>';
}else {
echo'
<tr>
<th colspan="4" bgcolor="#E2E2E2"></th>
</tr>
<tr>
<th colspan="4" bgcolor="#FFFFFF"><p><span style="color:#ff0000">Änderung fehlgeschlagen! Bitte wiederholen!</span></p></th>
</tr>';
}
}