I have a php login section on my website and I have added a few more columns to my 'users' table to include an 'authorised' column and also a menu file column.
Basically, a user can register but they do not become active until an Admin user edits the user to 'authorised'.
The menu item is the bit that has confused me.
Basically, I list a PHP include for a menu of items when a user is logged in and I want to have two separate menu files. I want to have menu.php as the default and then menu_admin.php as the Admin menu file.
Normally, I just have this in my source which loads the menu file:
Code:
<?php include('menu.php'); ?>
But I now have this value stored in the user table (menu.php). If a user logs in and is an admin user, the user table will have this value as 'menu_admin.php' so I want to be able to include this as the include file.
Any ideas on how I can do that?
(If you can understand what I'm trying to do!)