Hi, in der Index eines GB's kommt der Fehler: Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in C:\apachefriends\xampp\htdocs\guestbook\index.php on line 21
Hier die PHP:
	
Über Hilfe würd ich mich freuen, muss das mmorgen in der Schule als Belegarbeit abgeben!^^ THX
							
						
					Hier die PHP:
PHP-Code:
	
	
<html> 
<head> 
  <title>Mein Gästebuch</title> 
<link rel="stylesheet" type="text/css" href="style/style.css"> 
</head> 
<body> 
<? 
include("inc/connect.inc.php"); 
?> 
<table width="600" border="0" bgcolor="#000000" cellpadding="5" cellspacing="1" align="center"> 
  <tr> 
    <td height="40" bgcolor="#227CAC" align="center" valign="middle"><span class="header">Mein Gästebuch</span></td> 
  </tr> 
  <tr> 
    <td bgcolor="#dedede" valign="top" align="center"> 
    <a href="eintragen.php">In das Gästebuch eintragen</a> 
    <br><br> 
      <? 
        $abfrage = @ mysql_query("SELECT * FROM gbook ORDER BY id DESC")or die("Konnte den SELECT-Befehl nicht ausführen!!!"); 
        while($eintraege = mysql_fetch_object($abfrage)) { 
        echo "<table width="540" border="0" bgcolor="#000000" cellpadding="5" cellspacing="1" align="center">";
        echo "<tr> <td bgcolor="#227CAC" colspan="2"><span class="eintrag">Eintrag ".$eintraege->id." vom ".$eintraege->datum." um ".$eintraege->zeit."</span></td> </tr> "; 
        echo "<tr> <td width="180" bgcolor="#227CAC" valign="top" rowspan="2">"; 
        echo "<table width="170" bgcolor="#1F729F" border="0" cellpadding="2" cellspacing="1" align="center"> "; 
        echo "<tr> "; 
        echo "<td bgcolor="#2E8BBC" colspan="2"><b>Geschrieben von:</b></td></tr>"; 
        echo "<tr> "; 
        echo "<td width="25" bgcolor="#2E8BBC"><img src="images/user.gif" width="16" height="16" alt="Eintrag von ".$eintraege->name."" border="0"></td> "; 
        echo "<td width="145" bgcolor="#2E8BBC" valign="middle">".$eintraege->name."</td></tr> "; 
        echo "<td width="25" bgcolor="#2E8BBC"><a href="mailto:".$eintraege->email.""><img src="images/email.gif" width="18" height="18" alt="E-Mail an ".$eintraege->name." senden" border="0"></a></td> "; 
        echo "<td width="145" bgcolor="#2E8BBC" valign="middle"><a href="mailto:".$eintraege->email."">E-Mail</a></td></tr> "; 
        if(!empty($eintraege->www)) { 
          echo "<td width="25" bgcolor="#2E8BBC"><a href="".$eintraege->[url]www.[/url]"" target="_blank"><img src="images/home.gif" width="16" height="16" alt="Homepage von ".$eintraege->name." besuchen" border="0"></a></td> "; 
          echo "<td width="145" bgcolor="#2E8BBC" valign="middle"><a href="".$eintraege->[url]www.[/url]"" target="_blank">Homepage</a></td></tr>"; 
        } 
        echo "</table>"; 
        echo "</td>"; 
        echo "<td width="360" bgcolor="#dedede">".$eintraege->eintrag."</td></tr>"; 
        echo "<td width="360" bgcolor="#dedede" valign="bottom"><img src="images/ip.gif" width="16" height="16" border="0" alt="".$eintraege->ip_adresse.""> <span class="hinweis">IP-Adresse gespeichert</span></td></tr>"; 
        echo "</table><br>"; 
        } 
        @mysql_free_result($abfrage); 
        @mysql_close(); 
      ?> 
      <a href="eintragen.php">In das Gästebuch eintragen</a> 
    </td> 
  </tr>
</table>
</body>
</html>
 
          
 Moderator
 Moderator
 ABer jetz hab ich schon wieder ein Problem! Und zwar:Parse error: parse error, unexpected T_STRING in C:\apachefriends\xampp\htdocs\guestbook\inc\functions.inc.php on line 4
 ABer jetz hab ich schon wieder ein Problem! Und zwar:Parse error: parse error, unexpected T_STRING in C:\apachefriends\xampp\htdocs\guestbook\inc\functions.inc.php on line 4
Kommentar