I have run across a bit of an issue... Not some much a coding or logic one, but one that means I have to use a lesser security option to make it work.
I have created a page under MyPages for my site disclaimer. I also have several other pages under there. The disclaimer has guest access, whislt the others have User access. My issue is that how to I allow access to the disclaimer page and restrict the other to the users, without letting people see the pages that are not allowed to access.
If you drop the page name off the end of the html call (mypage_disclaimer.html becomes mypage.html), a guest can then be able to see all the pages on the site in that section. I know this doesn't sound like much, but I'd rather not let people know what is or isn't there if I can help it.
Would it be as simple as adding a...
...to the PHP, and then use a select statement that compares the user rank, to that of the particular pages rank? (Not sure what the SQL would even be for that)