Forgot your password?



 

Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

 





Feel The Power

webPhp Code: Parent , Child Category Tree


This is a simple PHP script to generate a Category Tree structure based on parent/child MySQL database. Database structure looks like this:

- category_id
- parent_id
- title

And will generate a structure like this:

Category 1
- Sub Category
- Sub, Sub Category
- Sub Category 2
Category 2

This is much simpler and works very well. The other code I found on this forum didn't work at all and was very complicated, so I wrote an easy script. Just 1 note: It's meant for a structure that does not have a root element.

If you don't know how to use this code or need more information Click here!

Go to Homepage


 

You can leave comments once you sign in/up.


Review

Please Rate this!

Visitor

Onlines:
Total Online:
Recent Members: Moch Husen Hadi Legana, Jezreel, elsopky, hitech40229, Dineshpaswan