Jump to content

thelberg

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

thelberg's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Great! Think I got it now :) Little to soon to set this problem as "Solved" yet. I'll give it some more try over the weekend. Thanks to both of you
  2. 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.
  3. Hi, I'm realy a newbie in PHP programming. (Using Dreamweaver for basic operations.) Now I need to create a site where users who are logged in can get access to additional contents, compared to anonymus users who are NOT logged inn. Example: On a public website with information about shoes, anyone can see the pictures and description. What I want is when a salesperson or administrator in my companys staff is logged in, he/she will be able to see some more information - about prices and stuff.. In .ASP the command for this is <% if (Session("MM_UserAuthorization")) = "Administrator" then %> {Enter the additional stuff here... Text, tables, pictures, buttons...} <% end if %> Anyone know the similar code for .PHP? ???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.