Ok, I'm making a member's login script for a group. There are two kinds of accounts: member and admin. Each person has their own individual username and password without using a database. Parse error is on line 35, my closing block for php (?>). This is definatly weird and I have tried it on two different servers, same results.
<?
$yespage = "you got in";
$nopage = "sorry you didn't get in";
$adminpage = "you got in as an admin";
if ($username == "blah" && $password == "blah")
{
$access = "member";
}
elseif ($username == "blah2" && $password == "blah2")
{
$access = "member";
}
elseif ($username == "admin" && $password == "admin")
{
$access = "admin";
}
else
{
$access = "no";
{
if ($access == "member")
{
echo "$yespage";
}
elseif ($access == "admin")
{
echo "$adminpage";
}
elseif ($access != "member" || $access != "admin")
{
echo $nopage;
}
?>