Have a table with three columns: id, parent, name
Any ideas how I get get all the children and subchildren of a specific id?
For example if the rows are like this:
1,NULL,A
2,1,B
3,1,C
4,2,D
5,3,E
6,4,F
The number of parent-child levels can potentially be endless (it's almost always 2-4 levels).
Database is a MySQL database.
Thanks.