I have some paths stored in my db as: They are unsorted and can be any length.
--------Paths--------
C:/devices/data1
C:/devices/data1/application2
C:/devices/data1/application1
C:/devices/data2/application3
C:/devices/data2/application2
C:/devices/data2/application1
C:/devices/data1/application3
I need to form a menu as below:
C > devices > data1> application1
application2
application3
data2> application1
application2
application3
Could you please help me solve this problem?
Wish for some quick responses. Thanks!
Ulvund's solution works for me but now I need to generate the links to the href tags:
I tried the following:
http://www.pbalan01.0fees.net/god1.php
Please help me remove the extra node: it currently generates...
C:/devices/data1 data1/application1 application2 application3 data2 data2/application1 application2 application3