Managing Hierarchy
Posted: Sun May 25, 2008 3:48 pm
If I have a table like this in MYSQL where category_parent_id = 0 if it is at top level:
How I do I display tree view like this by using php:
>>clothes
>>>>shirt
>>>>tie
>>>>trousers
>>food
>>>>indianfood
>>>>chinesefood
>>>>spanishfood
I am able to display links to every single one of them, but i dont know how to display them in tree hierachy view with proper indent to each different level. Any hints for me??? Thanks
How I do I display tree view like this by using php:
>>clothes
>>>>shirt
>>>>tie
>>>>trousers
>>food
>>>>indianfood
>>>>chinesefood
>>>>spanishfood
I am able to display links to every single one of them, but i dont know how to display them in tree hierachy view with proper indent to each different level. Any hints for me??? Thanks