I am currntly working on a category structure, which has to be build from an MySQL table. My table will look approximately like this:
ID | Name | ParentID
---+---------------------+---------
1 | Fruits | 0
2 | Apples | 1
3 | Bananas | 1
4 | Cars | 0
5 | Chevrolet | 4
6 | Aston Martin | 4
7 | Something | 0
8 | Something more | 0
9 | Test category | 8
10 | Below test | 9
How can I make this multi-level, so I can use it for creating e.g. menus, drop-downs and so on?
Thanks in advance,
denlau