dynamic dropdown menu through database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

dynamic dropdown menu through database

Post by manojsemwal1 »

Hai
I am working with a dynamic dropdown menu through database. its working fine. but the problem is occuerd when i have assign the menu to the user basis like
Administrator,Admin .
my menu table is like
id menuname parentid
1 Usermanagement 0
2 UserCreation 1
3 Userdetails 1
4 Master Creation 0
5 School Master 4
6 classMaster 4

I have given permission to the Admin like(1,3,4,5,6) id basis.
when the menu is display its showing only Main Menu like

Usermanagement(0), MasterCreation(0)
Userdetails(3) (here nothing showing).

if u have any experiance of this type of problem pl send solution

Thanks.

Manoj
Post Reply