• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

PHP - echo

mistro

New member
Hallo zusammen,
ich habe ein Problem bei PHP-Befehl 'echo'. Kann mir da jemand helfen.
Der Fehler lautet: Parse error: parse error, unexpected ';', expecting ']' in /home/thukchy/public_html/uv/details.php on line 71

PHP:
<?PHP
  $db_server = "localhost";
  $db_name = "db_name";
  $db_user = "db_user";
  $db_passwort = db_pw";

  $link=mysql_connect($db_server, $db_user, $db_passwort);
  mysql_select_db($db_name, $link);
  $detail = "SELECT * FROM ms_ms WHERE id=$gew";

    while ($iddet = mysql_fetch_array($detail))
  {
echo "
<table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='451' bordercolor='#C0C0C0' bordercolorlight='#C9C9C9' bordercolordark='#A9A9A9'>
	<tr>
		<td colspan='2'><font face='Arial' color='#FFFFFF'>" . $iddet[uv] . "  " . $iddet[ms-bez . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Ort</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[ms-art] . "</font></td>
	</tr>
         <tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Beginn</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[beginn] . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Ende</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[end] . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Ort</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[ort] . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Telefon</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[tel] . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Ruhetag</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $ruhetag . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Durchführender Klub</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[klub] . "</font></td>
	</tr>
	<tr>
		<td width='146'><font face='Arial' color='#FFFFFF'>Bemerkungen</font></td>
		<td width='302'><font face='Arial' color='#FFFFFF'>" . $iddet[bem] . "</font></td>
	</tr>
</table>
";
};
?>

thx & mfg
mistro
 
ist leider nicht das. habe ich auch schon versucht!
es kann auch sein, dass im text eine variable oder ein zeichen ist, welches nicht erlaubt ist.
 
Zuletzt bearbeitet:
das muss aber weg!
zudem kannst du gleich mal die werte $iddet[bem] in ' ' setzen.
also so : $iddet['bem']

ansonsten nocht das:
$db_passwort = db_pw"; <--- " " nicht "


und noch das :
"SELECT * FROM ms_ms WHERE id=$gew"; <---- .. WHERE id='".$gew."'";
 
Zurück
Oben