dynamic nav with categories and subcategories
Hey guys im in the middle of customizing a php cms app to fit my site...im basically reusing some of its code.
im currently working on the nav which is an accordion spry i will be using php to get categories and subcategories and echoing them so as to create the accordion.
the subcategories should appear under its category. In the database there are one category for many subcats and one subcat for mutiple products...so tbl_subcat has its own id plus the cat_id as the foreign key.
the origianl nav script echoed <li></li> for only categories..i adopted it for divs
here is the page http://vaughntucker.com/exflowers/about.php?
The problem im having is loading all the subcats under each category it only does one row and it repeats the same subcat for the rest of the categories so i know my php
logic is off but im stumped...
here is the entire code http://vaughntucker.com/exflowers/about.txt
Thanks
