hello community,
i have to build a menu with unlimited categories and subcategories, database driven.
Could anybody suggest to me a link to a good class that do this?
i tried to do a table like
| id | parent_id | text |
| 1 | 0 | link 1 |
| 2 | 1 | link 2 |
| 3 | 1 | link 3 |
| 4 | 2 | link 4 |
but I could not figure how recursively check if every menu voice has a parent, and if that parent has another parent etc etc....
Any help apreciated