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

Thread: tree menu

  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    tree menu

    Hi,

    I have a mysql table with following fields:
    id, subid, name
    and I want to create a function wich return me a tree menu of data like that:

    +name1
    +name2
    +name3
    +name4

    and when I click "name2":
    +name1
    - name2
    +name21
    +name22
    +name23
    +name3
    +name4
    ... etc

    I create some code but dont work ... I think must create 2 query but I don know how ...

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Scotland
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is a similar question to one i've just answered 2 mins earlier:

    having problems with loops


    (Woo Hoo! 2 birds with one stone!)
    My body's a temple... and like those ancient Greek ones it's a ruin
    sweenster.co.uk


  •  

    Posting Permissions

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