am working on a project where there are categories with subcategories.all i want to do is make this categories and subcategories dynamic by pulling from database the category ,subcategory and corresponding products. here is my table struture category table categoryID categoryNAME sub_category table sub_categoryID category_ID subcategory_NAME product table product_id subcategory_ID product_name product_image my html struture looks like this <h4>Mens Clothing & Accessories</h4> <ul> <li><a href="#">Designer</a></li> <li><a href="#">Shoes</a></li> <li><a href="#">Kitchen</a></li> <li><a href="#">Modern</a></li> <li><a href="#">Toys</a></li> <li><a href="#">Gadgets</a></li> <li><a href="#">Home Decor</a></li> <li><a href="#">Jewelry</a></li> <li><a href="#">Accessories</a></li> <li><a href="#">Eco-Friendly</a></li> </ul> </div> HTML: hope i have explained this well.