This is my code and I have an unexpected $end, can not see what is wrong…Please fresh eyes tell me if you can!! :o
<?php require_once('auth.php'); $querySelect = "SELECT name FROM users WHERE id = '".$_SESSION['SESS_MEMBER_ID']."'"; $resultSelect = mysql_query($querySelect); $row = mysql_fetch_array($resultSelect); $name = $row['name']; $sqlSelect = "SELECT permission FROM users WHERE id = '".$_SESSION['SESS_MEMBER_ID']."'"; $sqlResult = mysql_query($sqlSelect); $line = mysql_fetch_array($sqlResult); $perm = $line['permission']; ?> IndexWelcome <?php echo $name;?>
My Profile | LogoutThis is a password protected area only accessible to members.
<?php if($line) { if($perm = 'admin') { include('admin.php'); } elseif($perm = 'manager') { include('manager.php'); } elseif($perm = 'client') { include('client.php'); } elseif($perm = 'staff') { include('staff.php'); } elseif($perm = 'DE') { include('DE.php'); } ?>THANK YOU!!!