Hallo,
die meisten kennen diese Situation bestimmt: Man arbeitet an einem Projekt und sitzt mit konzentraation davor, hat es fertig und dann kommt eine Fehlermeldung mit der man nicht rechnet. Also Ich habe diese Fehlermeldung bekommen:
"unexpected $end in /2006/site/backend/immo_angebot.php on line 239". Was die Fehlermeldung bedeutet glaube ich zu wissen. Aber ich finde den Fehler nicht. Es ist doch bestimmt eine falsch gesetzte oder überflüsissig {,),'," oder sonst ein Zeichen sein, welches eine Funktion nicht schließt...
Ich habe schon 'ne lange Zeit mit der Suche verbracht, aber wahrscheinlich sehe ich vor lauter Code den Fehler nicht mehr.
Wäre super wenn mir da einer drüberschauen könnte, Danke !
Ich weiß es ist ziemlich lange, aber ich sehe nur noch Code....
PHP-Code:
<?PHP
include("../config.php");
?>
<br>
<table width="500" height="174" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr >
<td>Verwaltung Immobilien-Angebote</td>
</tr>
</table>
<?
include("../../frye_data.php");
if ($submit2==" Eintragen ") {
mysql_query("UPDATE frye_wohnung SET wohn_anzahl='$wohn_anzahl', wohn_geschoss='$wohn_geschoss', wohn_titel='$wohn_titel', wohn_groesse='$wohn_groesse', wohn_beschreibung='$wohn_beschreibung', wohn_preis='$wohn_preis', wohn_extras='$wohn_extras', wohn_extras_preis='$wohn_extras_preis' WHERE wohn_id='$wohn_id'");
mysql_close();
{ ?>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr >
<td colspan="3"><span>Uploadergebnis:</span></td>
</tr>
<tr >
<td width="20%" > </td>
<td width="80%" colspan="2" >Die Wohnung wurde geändert ! </td>
</tr>
</table>
<?PHP }
if ($submit==" Eintragen ") {
include("../../frye_data.php");
mysql_query("INSERT INTO
frye_wohnung(wohn_anzahl,wohn_geschoss,wohn_titel,wohn_groesse,wohn_beschreibung,wohn_preis,wohn_extras,wohn_extras_preis)VALUES('$wohn_anzahl','$wohn_geschoss','$wohn_titel','$wohn_groesse','$wohn_beschreibung','$wohn_preis','$wohn_extras','$wohn_extras_preis')");
mysql_close();
?>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td colspan="3"><span>Uploadergebnis:</span></td>
</tr>
<tr>
<td width="20%" > </td>
<td width="80%" colspan="2" >Die Wohnung wurde eingetragen ! </td>
</tr>
</table>
<?
}
if ($submit==" Bearbeiten "){
$query = "SELECT * FROM frye_wohnung WHERE wohn_id='$wohn_id'";
$result = mysql_query($query);
$line = mysql_fetch_array($result)
?>
<form method="post" action="index.php?admin_id=3">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr >
<td colspan="3">Neue Wohnungen eintragen </td>
</tr>
<tr>
<td>Anzahl</td>
<td colspan="2"><input name="wohn_anzahl" type="text" id="wohn_anzahl" size="40" maxlength="40" value="<? echo"$line[wohn_anzahl]"; ?>">
z.B.: "1" </td>
</tr>
<tr>
<td width="20%">Titel</td>
<td width="80%" colspan="2"><input name="wohn_titel" type="text" id="wohn_titel" size="40" maxlength="200" value="<? echo"$line[wohn_titel]"; ?>">
z.B.: "3 Zimmer Whg." </td>
</tr>
<tr>
<td>Stockwerk</td>
<td colspan="2"><input name="wohn_geschoss" type="text" id="wohn_geschoss" size="40" maxlength="40" value="<? echo"$line[wohn_geschoss]"; ?>">
z.B.: "EG"</td>
</tr>
<tr>
<td>Größe</td>
<td colspan="2"><input name="wohn_groesse" type="text" id="wohn_groesse" size="40" maxlength="40" value="<? echo"$line[wohn_groesse]"; ?>">
z.B.: "65" </td>
</tr>
<tr>
<td>Beschreibung</td>
<td colspan="2"><input name="wohn_beschreibung" type="text" id="wohn_beschreibung" size="40" maxlength="200" value="<? echo"$line[wohn_beschreibung]"; ?>">
z.B.: "mit Balkon" </td>
</tr>
<tr>
<td>Preis</td>
<td colspan="2"><input name="wohn_preis" type="text" id="wohn_preis" size="40" maxlength="40" value="<? echo"$line[wohn_preis]"; ?>">
z.B.: "165.000" </td>
</tr>
<tr>
<td>Extras</td>
<td colspan="2"><input name="wohn_extras" type="text" id="wohn_extras" size="40" maxlength="200" value="<? echo"$line[wohn_extras]"; ?>">
z.B.: "zzgl. Carport" </td>
</tr>
<tr>
<td>Extras Preis </td>
<td colspan="2"><input name="wohn_extras_preis" type="text" id="wohn_extras_preis" size="40" maxlength="40" value="<? echo"$line[wohn_extras_preis]"; ?>">
z.B.: "12.500" </td>
</tr>
<tr >
<td > </td>
<td colspan="2" ><input name="submit2" type="submit" class="inputtext" value=" Eintragen ">
<input name="Submit2" type="reset" class="inputtext" value="Zurücksetzen">
</td>
</tr>
</table>
</form>
<p><br>
<?
}
if ($submit==" Neu "){
?>
</p>
<form method="post" action="index.php?admin_id=3">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr >
<td colspan="3">Neue Wohnungen eintragen </td>
</tr>
<tr>
<td>Anzahl</td>
<td colspan="2"><input name="wohn_anzahl" type="text" id="wohn_anzahl" size="40" maxlength="40">
z.B.: "1" </td>
</tr>
<tr>
<td width="20%">Titel</td>
<td width="80%" colspan="2"><input name="wohn_titel" type="text" id="wohn_titel" size="40" maxlength="200">
z.B.: "3 Zimmer Whg." </td>
</tr>
<tr>
<td>Stockwerk</td>
<td colspan="2"><input name="wohn_geschoss" type="text" id="wohn_geschoss" size="40" maxlength="40">
z.B.: "EG"</td>
</tr>
<tr>
<td>Größe</td>
<td colspan="2"><input name="wohn_groesse" type="text" id="wohn_groesse" size="40" maxlength="40">
z.B.: "65" </td>
</tr>
<tr>
<td>Beschreibung</td>
<td colspan="2"><input name="wohn_beschreibung" type="text" id="wohn_beschreibung" size="40" maxlength="200">
z.B.: "mit Balkon" </td>
</tr>
<tr>
<td>Preis</td>
<td colspan="2"><input name="wohn_preis" type="text" id="wohn_preis" size="40" maxlength="40">
z.B.: "165.000" </td>
</tr>
<tr>
<td>Extras</td>
<td colspan="2"><input name="wohn_extras" type="text" id="wohn_extras" size="40" maxlength="200">
z.B.: "zzgl. Carport" </td>
</tr>
<tr>
<td>Extras Preis </td>
<td colspan="2"><input name="wohn_extras_preis" type="text" id="wohn_extras_preis" size="40" maxlength="40">
z.B.: "12.500" </td>
</tr>
<tr >
<td > </td>
<td colspan="2" ><input name="submit" type="submit" class="inputtext" value=" Eintragen ">
<input name="Submit2" type="reset" class="inputtext" value="Zurücksetzen">
</td>
</tr>
</table>
</form><br>
<?
}
else{
?>
<?PHP
include("../../frye_data.php");
$query = "SELECT * FROM frye_wohnung ORDER BY wohn_titel ASC";
$result = mysql_query($query);
$anz = mysql_num_rows($result); { ?>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<?PHP
}
while ($line = mysql_fetch_array($result))
{ ?>
<tr>
<td width="98"><strong >Anzahl</strong></td>
<td colspan="3"><?=$line[wohn_anzahl]?></td>
</tr>
<tr>
<td>Titel</td>
<td colspan="4"><?=$line[wohn_titel]?></td>
</tr>
<tr>
<td>Stockwerk</td>
<td colspan="4"><?=$line[wohn_geschoss]?></td>
</tr>
<tr>
<td>Größe</td>
<td colspan="4"><?=$line[wohn_groesse]?></td>
</tr>
<tr>
<td>Beschreibung</td>
<td colspan="4"><?=$line[wohn_beschreibung]?></td>
</tr>
<tr>
<td >Preis</td>
<td colspan="4"><?=$line[wohn_preis]?></td>
</tr>
<tr>
<td>Extras</td>
<td colspan="4"><?=$line[wohn_extras]?></td>
</tr>
<tr>
<td>Extras Preis </td>
<td colspan="4"><?=$line[wohn_extras_preis]?></td>
</tr>
<tr>
<td> </td>
<td width="96"><input name="submit" type="submit" class="inputtext" value=" Bearbeiten "></td>
<td width="89"><input name="submit" type="submit" class="inputtext" value=" Loeschen "></td>
<td width="191"><form method="post" action="index.php?admin_id=3"><input name="submit" type="submit" class="inputtext" value=" Neu "></form></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?
}
mysql_free_result($result);
mysql_close();
?>
</table></td>
</tr>
</table>