Hallo an alle,
und mal wieder ein Problemchen bei dem ich nicht weiterkomme.
Folgender Fehler wird vom Script zurückgegeben.
Parse error: parse error, unexpected '{' in E:\xampp\htdocs\partner\script\search3.php on line 64
Kann mir da bitte jemand weiterhelfen?
Vielen Dank im voraus!
Talk......
Da das mit dem Dateiupload nicht geklappt hat setze ich den Code mal hier rein. SORRY
<?
// Hier keine Veränderungen vornehmen
// Datenbankverbindung
include("config.php");
include("db_connect.php");
// Löschen von alten Anzeigen
include("expire.php");
// Datenbank auslesen
if ($ort == "alle") {
$abfrage="SELECT DISTINCT anz_id,anz_datum,anz_name,anz_geschlecht,anz_ort,anz_plz,anz_alt,anz_sterne,anz_alter,anz_stern,anz_ anspruch,anz_und,anz_geschlecht1,anz_land,anz_hobby,anz_vorliebe,anz_abneigung,anz_interesse,anz_ode r,anz_haare,anz_augen,anz_figur,anz_groesse,anz_gewicht,anz_kinder,anz_raucher,anz_relegion,anz_emai l,anz_page,anz_pic,anz_rubrik,anz_text,anz_chiff FROM anzeigen ORDER BY anz_datum DESC";
}
else
{
$abfrage="SELECT DISTINCT anz_id,anz_datum,anz_name,anz_geschlecht,anz_ort,anz_plz,anz_alt,anz_sterne,anz_alter,anz_stern,anz_ anspruch,anz_und,anz_geschlecht1,anz_land,anz_hobby,anz_vorliebe,anz_abneigung,anz_interesse,anz_ode r,anz_haare,anz_augen,anz_figur,anz_groesse,anz_gewicht,anz_kinder,anz_raucher,anz_relegion,anz_emai l,anz_page,anz_pic,anz_rubrik,anz_text,anz_chiff FROM anzeigen WHERE anz_ort='$ort' ORDER BY anz_datum DESC";
}
$ergebnis=mysql_query($abfrage);
// Ergebnisse ausgeben
echo "<html>";
echo "<head>";
echo "<style>
a:hover {color:blue; text-decoration:none;}
a:link {color:red; text-decoration:none;}
a:visited {color:black; text-decoration:none;}
body
{
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #B9C8D2;
scrollbar-darkshadow-color: #B9C8D2;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #FF0000;
}
TABLE
{
Font-Family: Verdana, Helvetica;
Font-Size: 10px;
color:blue;
border-style:dotted;
border-color:FFd800;
border-width:2;
}
</style>";
echo "</head>";
echo "<body bgcolor=#ffffff leftmargin='0' marginwidth='0' topmargin='5' marginheight='5'>";
echo "<center>";
echo "<center><img src='../images/search1.gif'></center><br>";
while(list($anz_id,$anz_datum,$anz_name,$anz_geschlecht,$anz_ort,$anz_plz,$anz_alt,$anz_sterne,$anz_ alter,$anz_stern,$anz_anspruch,$anz_und,$anz_geschlecht1,$anz_land,$anz_hobby,$anz_vorliebe,$anz_abn eigung,$anz_interesse,$anz_oder,$anz_haare,$anz_augen,$anz_figur,$anz_groesse,$anz_gewicht,$anz_kind er,$anz_raucher,$anz_relegion,$anz_email,$anz_page,$anz_pic,$anz_rubrik,$anz_text,$anz_chiff)=mysql_ fetch_row($ergebnis)) {
if ($anz_datum){
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $anz_datum, $dat);
}
($data = mysql_fetch_array($resultID))
{ [COLOR=red](Hier wird der Fehler angezeigt Z64)[/COLOR]
echo ($data["ID"].": ".$data["INHALT"]."<br>");
}
echo "<table style='border-color:rgb(255,216,0); border-style:dotted;' align='center' border='0' cellpadding='0' cellspacing='1' width='600'>
<tr>
<td width='70' bgcolor='#FFD800' height='20'>
<p>".$dat[3].".".$dat[2].".".$dat[1]."</p>
</td>
<td width='100' bgcolor='#FFCC66' height='25'>
<p>Rubrik</p>
</td>
<td width='400' bgcolor='#FFCC66' height='25'>
<p>$anz_rubrik</p>
</td>
<td width='60' bgcolor='#FFD800' height='60' rowspan='4' align='middle'>
<p><center>Für<br>mehr<br>Details<br>drücken Sie<a href='detail.php?anz_name=$anz_name&anz_chiff=$anz_chiff' target=details ONCLICK=window.open('','details','scrollbars=yes,width=650,height=400')><br><br>hier</a></center></p>
</td>
</tr>
<tr>
<td width='60' rowspan='3' bgcolor='#FFD800' align='middle'>
<p><img src=$anz_pic border=0 width=50,height=50></p>
</td>
<td width='100' bgcolor='#FFD800' height='25'>
<p>Ort</p>
</td>
<td width='400' bgcolor='#FFD800' height='25'>
<p>$anz_ort</p>
</td>
</tr>
<tr>
<td width='100' bgcolor='#FFCC66' height='25'>
<p>Gesuchtes Alter</p>
</td>
<td width='400' bgcolor='#FFCC66' height='25'>
<p>$anz_alt</p>
</td>
</tr>
<tr>
<td width='100' bgcolor='#FFD800' height='25'>
<p>Interesse</p>
</td>
<td width='400' bgcolor='#FFD800' height='25'>
<p>$anz_interesse</p>
</td>
</tr>
</table>
<br>";
}
echo "<center><a href='../pages/form.php' target=_top><b><font size='2' face='Verdana'><b> Nichts gefunden??, Inserieren Sie hier!</font></b></a>
<br><input type=button value='Zurück' onClick=history.back() style='font-family:Verdana; font-size:10px; color:blue; background-color:white; border-style:groove;'>
</center>";
echo "</body>";
echo "</html>";
// Datenbank schliessen
mysql_close( $link );
?>
und mal wieder ein Problemchen bei dem ich nicht weiterkomme.
Folgender Fehler wird vom Script zurückgegeben.
Parse error: parse error, unexpected '{' in E:\xampp\htdocs\partner\script\search3.php on line 64
Kann mir da bitte jemand weiterhelfen?

Vielen Dank im voraus!
Talk......
Da das mit dem Dateiupload nicht geklappt hat setze ich den Code mal hier rein. SORRY
<?
// Hier keine Veränderungen vornehmen
// Datenbankverbindung
include("config.php");
include("db_connect.php");
// Löschen von alten Anzeigen
include("expire.php");
// Datenbank auslesen
if ($ort == "alle") {
$abfrage="SELECT DISTINCT anz_id,anz_datum,anz_name,anz_geschlecht,anz_ort,anz_plz,anz_alt,anz_sterne,anz_alter,anz_stern,anz_ anspruch,anz_und,anz_geschlecht1,anz_land,anz_hobby,anz_vorliebe,anz_abneigung,anz_interesse,anz_ode r,anz_haare,anz_augen,anz_figur,anz_groesse,anz_gewicht,anz_kinder,anz_raucher,anz_relegion,anz_emai l,anz_page,anz_pic,anz_rubrik,anz_text,anz_chiff FROM anzeigen ORDER BY anz_datum DESC";
}
else
{
$abfrage="SELECT DISTINCT anz_id,anz_datum,anz_name,anz_geschlecht,anz_ort,anz_plz,anz_alt,anz_sterne,anz_alter,anz_stern,anz_ anspruch,anz_und,anz_geschlecht1,anz_land,anz_hobby,anz_vorliebe,anz_abneigung,anz_interesse,anz_ode r,anz_haare,anz_augen,anz_figur,anz_groesse,anz_gewicht,anz_kinder,anz_raucher,anz_relegion,anz_emai l,anz_page,anz_pic,anz_rubrik,anz_text,anz_chiff FROM anzeigen WHERE anz_ort='$ort' ORDER BY anz_datum DESC";
}
$ergebnis=mysql_query($abfrage);
// Ergebnisse ausgeben
echo "<html>";
echo "<head>";
echo "<style>
a:hover {color:blue; text-decoration:none;}
a:link {color:red; text-decoration:none;}
a:visited {color:black; text-decoration:none;}
body
{
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #B9C8D2;
scrollbar-darkshadow-color: #B9C8D2;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #FF0000;
}
TABLE
{
Font-Family: Verdana, Helvetica;
Font-Size: 10px;
color:blue;
border-style:dotted;
border-color:FFd800;
border-width:2;
}
</style>";
echo "</head>";
echo "<body bgcolor=#ffffff leftmargin='0' marginwidth='0' topmargin='5' marginheight='5'>";
echo "<center>";
echo "<center><img src='../images/search1.gif'></center><br>";
while(list($anz_id,$anz_datum,$anz_name,$anz_geschlecht,$anz_ort,$anz_plz,$anz_alt,$anz_sterne,$anz_ alter,$anz_stern,$anz_anspruch,$anz_und,$anz_geschlecht1,$anz_land,$anz_hobby,$anz_vorliebe,$anz_abn eigung,$anz_interesse,$anz_oder,$anz_haare,$anz_augen,$anz_figur,$anz_groesse,$anz_gewicht,$anz_kind er,$anz_raucher,$anz_relegion,$anz_email,$anz_page,$anz_pic,$anz_rubrik,$anz_text,$anz_chiff)=mysql_ fetch_row($ergebnis)) {
if ($anz_datum){
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $anz_datum, $dat);
}
($data = mysql_fetch_array($resultID))
{ [COLOR=red](Hier wird der Fehler angezeigt Z64)[/COLOR]
echo ($data["ID"].": ".$data["INHALT"]."<br>");
}
echo "<table style='border-color:rgb(255,216,0); border-style:dotted;' align='center' border='0' cellpadding='0' cellspacing='1' width='600'>
<tr>
<td width='70' bgcolor='#FFD800' height='20'>
<p>".$dat[3].".".$dat[2].".".$dat[1]."</p>
</td>
<td width='100' bgcolor='#FFCC66' height='25'>
<p>Rubrik</p>
</td>
<td width='400' bgcolor='#FFCC66' height='25'>
<p>$anz_rubrik</p>
</td>
<td width='60' bgcolor='#FFD800' height='60' rowspan='4' align='middle'>
<p><center>Für<br>mehr<br>Details<br>drücken Sie<a href='detail.php?anz_name=$anz_name&anz_chiff=$anz_chiff' target=details ONCLICK=window.open('','details','scrollbars=yes,width=650,height=400')><br><br>hier</a></center></p>
</td>
</tr>
<tr>
<td width='60' rowspan='3' bgcolor='#FFD800' align='middle'>
<p><img src=$anz_pic border=0 width=50,height=50></p>
</td>
<td width='100' bgcolor='#FFD800' height='25'>
<p>Ort</p>
</td>
<td width='400' bgcolor='#FFD800' height='25'>
<p>$anz_ort</p>
</td>
</tr>
<tr>
<td width='100' bgcolor='#FFCC66' height='25'>
<p>Gesuchtes Alter</p>
</td>
<td width='400' bgcolor='#FFCC66' height='25'>
<p>$anz_alt</p>
</td>
</tr>
<tr>
<td width='100' bgcolor='#FFD800' height='25'>
<p>Interesse</p>
</td>
<td width='400' bgcolor='#FFD800' height='25'>
<p>$anz_interesse</p>
</td>
</tr>
</table>
<br>";
}
echo "<center><a href='../pages/form.php' target=_top><b><font size='2' face='Verdana'><b> Nichts gefunden??, Inserieren Sie hier!</font></b></a>
<br><input type=button value='Zurück' onClick=history.back() style='font-family:Verdana; font-size:10px; color:blue; background-color:white; border-style:groove;'>
</center>";
echo "</body>";
echo "</html>";
// Datenbank schliessen
mysql_close( $link );
?>
Kommentar