Грешката е следната
Пример:
|
Parse error: syntax error, unexpected $end in C:AppServwwwlogin.php on line 41 |
|
|
<form action="" method="post"> Username:<input type="text" name="user"> <input type="submit" name="submit" value="Login"> </form> <?php if ($_POST['submit']) { $username= htmlspecialchars($_POST['username']); if ($username == NULL) { echo "Има непопълнено!"; } else { $sql = "INSERT INTO members (username) VALUES ('$username')"; mysql_query($sql) or die (mysql_error()); echo "Dobawen uspeshno!"; ?> |
|
|
Parse error: syntax error, unexpected $end in C:AppServwwwreg.php on line 18 |
|
|
<form action="" method="post"> Username:<input type="text" name="user"> <input type="submit" name="submit" value="Login"> </form> <?php if ($_POST['submit']) { $username= htmlspecialchars($_POST['username']); if ($username == NULL) { echo "Има непопълнено!"; } else { $sql = "INSERT INTO members (username) VALUES ('$username')"; mysql_query($sql) or die (mysql_error()); echo "Dobawen uspeshno!"; } // Оправено! } // Вече няма грешка ?> |
|
Това ли беше? Добре, че забрани копирането на урока ти, за малко да го постна във всички форуми :-)