I am looking for aid with the following:
I have a table with the following info:
ID Title Parent
1 cat1 0
2 cat2 3
3 cat3 1
4 cat4 1
5 cat5 0
6 cat6 4
I want my result to echo out something like:
aux1 = cat1
aux2 = cat3
aux3 = cat2
aux2 = cat4
aux3 = cat6
aux1 = cat5
Any aid would be super appreciated.