Parse error: syntax error, unexpected T_ELSEIF in /login-exec.php on line 63
the entire IF.. where it stop’s it.
i can’t seem to find the glitch. but this is my first time dealing with ELSEIF
about this IF .. there are only 3 possible outcomes what this IF has to check. yes, no or blank = “”
for a ban feature
its simple. if STATUS = YES, your banned
if no. your not.
if its empty. go to verify page (basic note, this account has not been verified.. bla bla bla) *hope it helps.
note
i tried with qouates ” and ‘ no difference
thanks for your help ?
[code=php]
if($result) {
if(mysql_num_rows($result) == 1) {
//Login Successful
session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION[‘SESS_USERNAME’] = $member[‘Username’];
$_SESSION[‘SESS_PASSWORD’] = $member[‘Password’];
$_SESSION[‘SESS_STATUS’] = $member[‘Status’];
if ($_SESSION[‘SESS_STATUS’] = “no”)
header(“location: member-index.php”);
session_write_close();
exit();
elseif ($_SESSION[‘SESS_STATUS’] = “yes”) // << the error says this ELSEIF
//banned
header(“location: banned.php”);
session_write_close();
exit();
else ($_SESSION[‘SESS_STATUS’] = “”)
//not authorised
header(“location: verified.php”);
session_write_close();
exit();
}
}
?>