Warum bekomme ich als Fehler?: Parse error: syntax error, unexpected T_VARIABLE in .../../... on line 46
Line 46: $eintragen = mysql_query($eintrag);
mfG Alex182
Line 46: $eintragen = mysql_query($eintrag);
PHP-Code:
if(isset($eintrag_succseful))
{
echo " <form action=\"gb_into.php\" method=\"post\">";
echo " <table border=\"1\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#E0E0E0\">";
echo " <tr>";
echo " <td align=\"right\">";
echo " Name:";
echo " </td>";
echo " <td>";
echo " <input name=\"UserName\" type=\"text\" size=\"30\" maxlength=\"30\">";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td align=\"right\">";
echo " Nachname:";
echo " </td>";
echo " <td>";
echo " <input name=\"UserEintrag\" type=\"text\" size=\"30\" maxlength=\"30\">";
echo " <input name=\"eintrag_succseful\" type=\"hidden\" value=\"1\">";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td align=\"right\">";
echo " Formular:";
echo " </td>";
echo " <td>";
echo " <input type=\"submit\" value=\" Absenden \">";
echo " </form>";
}
else
{
$eintrag = "INSERT INTO guestbook (UserName, UserEintrag, Date) VALUES ('$UserName', '$UserEintrag', '$Date')"
$eintragen = mysql_query($eintrag);
echo "<a href=\"gb.php\">Zurück zum Gästebuch</a>";
}
mfG Alex182
Kommentar