*IF* it was that simple
| From: | Tarrant Costelloe | Date: | Thu, 17 May 2001 09:47:44 +0000 |
| Subject: | *IF* it was that simple | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53195@lists.php.net to get a copy of this message | ||
Ok here is a simple IF statement I am messing around with, yet the parser is
sending back an error message of which I cannot see the cause:
Code:
====
<?php
if ($name == "tarrant" && $username == "costtar" && $password ==
"password");
{
print("Your are now logged in $name, thank you.");
}
else
{
print("Access Denied! IP Logged");
}
?>
Error:
====
Parse error: parse error in C:\locahost\parser.php on line 16
Line 16 being the line which contains "else" (line 6).