Code for displaying categories and subcategories using PHP

Discussion in 'PHP' started by dsingh, Mar 28, 2007.

  1. #1
    Hi all
    Can anybody shared code for displaying categories and subcategories upto any level in PHP
    example : Root->Child1->child2------childN
     
    dsingh, Mar 28, 2007 IP
  2. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #2
    can u please give an example?
     
    srobona, Mar 28, 2007 IP
  3. dsingh

    dsingh Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Asia
    India
    New Delhi
    Punjab
     
    dsingh, Mar 28, 2007 IP
  4. dsingh

    dsingh Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Asia
    -->India(Country) -->New Delhi(state)-->Pitampura(city)-->City center(colony)

    -->Bombay-->North Bombay
    -->Punjab -->Ludhiana
     
    dsingh, Mar 28, 2007 IP
  5. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #5
    visit the site: http://gallery.mybestworks.com

    Here you will find that the subcategory will change according to category.
    If this fits your need, i'll provide you the code (as i'm the owner of that site).
     
    srobona, Mar 28, 2007 IP
  6. dsingh

    dsingh Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for replying ,I need the results which work using OnClick Event
    like if i click India,the result is India->NewDelhi,If i click New Delhi the result is India->New Delhi->pitampura
     
    dsingh, Mar 29, 2007 IP