Re: [JH] [image] problem with build a simple category
Hi JH,
Try this instead:
<?php if ($record['parent
Num'] != $selectedCategory['num']) { continue; } ?>
What you want to do is possible, but is going to take a little custom coding to filter out all but the records you want.
You either need to give yourself time to figure it out or the budget to have consulting do it.
My advice is break it down step by step. First create some mockup data in the database to match what you have in the screenshots. Then create 3 viewers, one for each of your screens shown. Then focus on them one at a time.
For the first one you need to only show the top level categories, so you might want to filter out so of the menu items by depth like this:
<?php if ($record['depth'] > 0) { continue; } ?>
This format that you have is a bit for complex to create.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com