I have been coding all day today, and either I fried myself or im having some problem with the logic behind this... I have a categories table in an MYSQL database that should output in a hieratical manor. Looks something like this:
id - parent_id - title
1 0 Cat1
2 1 Cat2
3 1 Cat3
4 2 Cat4
5 2 Cat5
6 4 Cat6
7 4 Cat7
etc...
Im trying to create list in its correct hieratical order... So something like:
Cat1
I tried several group by statements, some array ideas. But everything im trying seems to end up using one to many queries or my array is to messy to look at. I know this is simple, so any help is appreciated. Thanks in advanced... Time to find some more coffee 🙂