Hi all,
I have been tearing my hair out and I think its something simple I am missing.
what I have is members area on my site which allows access to people that have registered. What I want to is restrict access to certain pages.
What I have in the members database is a field called “level” this is an integer value.
I want the page to check if the level is >2 and if it is then it should deny access to the page and give only a link to “go back” and not show the content of that page, if the level is 2 or below then the page should load normally.
for instance “members-index.php” has a link to administration page called “admin-index.php”, I only want members with level 2 or below to have access to “admin-index.php”
any help would be greatly taken.
regards
dave