If I where you, I would make a row in the database called "user_level". Then, use an if statement that checks the row, not the session. Kinda like, it checks the session`s row in the database to see if the user level matches what you need to see the admin panel. Plus, I always thought your supposed to use single quotation marks like ', not " when echoing......