PHP,mysql dynamic menu

Discussion in 'Programming' started by rengamathcs, Sep 29, 2008.

  1. #1
    Hi anybody knows how to create dynamic menu using php,mysql...

    Example

    suppose i have country,state city lists in mysql database i want country as main menu, state as submenu and city as submenu for state.

    When i mouse over on the country it should display according to the selected country and when i mouse on the state the corresponding cities should display and when i click on the city it should display the selected city details.

    I have mapped these details in mysql.

    I can put countries lists in left panel..

    example structure.

    India->Tamilnadu->Chennai.

    This should display chennai details..

    is it possible?

    Thanks for all the reply...
     
    rengamathcs, Sep 29, 2008 IP
  2. daman371

    daman371 Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes it is possible. It just requires some PHP outputting and some html formatting.
     
    daman371, Oct 3, 2008 IP
  3. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Easily done with a mysql query. PM me if you want more info
     
    garrettheel, Oct 4, 2008 IP
  4. So1

    So1 Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Problems using AJAX? U can also output ALL OF INFO in hidden blocks and display them if u need (using JavaScript DOM HTMLElement.style.display)
     
    So1, Oct 4, 2008 IP