Okay I can’t figure out what I’m doing wrong here..
I have 2 access levels 0 & 1
[LIST][*]
0 = administrator
1 = regular user
I have it so, when a user is not logged in it shows the login form, and when they are logged in it shows them options.
[code=php] if ($_SESSION[‘MM_UserGroup’] > “”) {
print $loggedin;
}
else {
print $loginform;
}
So then.. in a seperate location.. i wanted a link to the administration panel to show when an administrator was logged on…
So I tried this:
[code=php]
if ($_SESSION[‘MM_UserGroup’] = “0”) {
echo “[admin panel]”;
}
else {
echo “”;
}
But.. it just echoes out the text [admin panel] regardless if a user is even logged in or not?
Thanks =]