Hi,

I was having only one admin in my system.Now I want to add one more,where the new one is having lesser privileges.For that I want to hide some menus from him where he is not aware about that linking pages.

Is there anyone who can help me to do this...Reply is appreciated greatly.:)

1) You can have one table for all admin module's php pages name.
2) second table is for which admin have which php page's rights.
3) when any admin login then on top of page insert one common file, which will check take current php page's name and check in database whether that admin have permission or not.If admin have not permission then throw permission error.
4)In menu module names will be listed from database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.