Multidimensional array (parent and childs)
- by Juan
I have a category system in a MySQL database with parents and childs. The database only stores the id of it''s immediate parent (or 0 if on root). Since the system allows multiple subcategories there are cases of multiple childs.
For example
[98] Storage
[1] External
[3] Pendrives
[4] Portable hhdds
[2] Internal
…