好吧,为了构建我的菜单我的菜单,我使用类似这样的数据库结构
2 Services 0 3 Photo Gallery 0 4 Home 0 5 Feedback 0 6 FAQs 0 7 News & Events 0 8 Testimonials 0 81 FACN 0 83 Organisation Structure 81 84 Constitution 81 85 Council 81 86 IFAWPCA 81 87 Services 81 88 Publications 81
要为现有子菜单指定另一个子菜单,我只需将其父ID作为父字段的值.
父0表示顶级菜单
现在在另一个子菜单中创建子菜单时没有问题
现在这是我获取顶级菜单的子菜单的方式
我想做的是.
我想检查新菜单是否有其他子菜单
我想继续检查,直到它搜索每个可用的子菜单
我想在其特定列表项中显示其子菜单,如下所示