Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamic Dropdown Menu?

    I have database in mysql name "prj"
    contains 1 table name "inf".

    which have 2 fields named "student" & "teacher".

    I want to create two drop down menu.

    1 for : Select Category [Student] or [Teacher].
    when i select student it automatically selects the field of student from database and display in the 2nd dropdown menu.


    How can i do this , please help me in this regard.

  • #2
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hiiiiii

    Not so long ago I was in a big search for a solution like this and my search didn't lead to any positive results. I was looking for a dynamic PHP menu that will allow me to play with lots of options and situations. My application required some special code because it's based on member groups and so, my menu was supposed to reflect the permissions attached to each group in part. I was left with some horror solutions and this one explained in this article. Why horror? Well, imagine building a special menu for each group in part. Worst, my software will be sold to people, what if they create 100 groups with various combinations...what's the menu now huh?! The following tutorial is based on my finished work which I'm very pleased with. I'm not just going to paste the code and explain but I will start with a basic example and going up the road of "dynamic"

    Web developer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •