Thanks, just what I needed
It worked well; both the section with "Member options" displayed, and including different files depending on wich level you are logged in.
But;
When an anonymus user NOT are logged in... That's difficult...
I can't get that right...
Here's my code based on my own loginprosedure:
<?php
session_start();
// If users aren't logged in then display this message.
if($_SESSION['MM_UserGroup'] == 0){
echo "You are not logged in.";
}
// Users logged in successfully, display options.
echo $_SESSION['MM_Username'] ."</b><br /><br />";
?>
"...UserGroup'] == 0..." I don't have any usergrups with level 0. Is there any way of telling the session that no one has logged on? I can't put thousands of anonymius users in their own usergroup??
My point is,
anonymus users will see some information, like including a file containing a recordset with some fields visible. When a registerd user log in, he or she will see more information! From another file containing the same recordset, but with some more fields visible now.
Your describtion solve this partialy. However, the missing link here is how to include one spesific file when nobody is logged in, and another file when somebody is logged in.