PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Well, here is the code for the dropdown I have been worlking on... So far it gives the appropriate category title to each dropdown. The trouble I am having is that it enters each of the products in the dropdowns 15 times, it adds an instance of the product for everytime it loops through the categories.
How can I get it to place each item in the dropdowns once instead of everytime it loops through the "categories" table?
It's fetching everything I need just fine from tables "category" and "item." The issue is that when the categories are listed above the drop down, each item is listed everytime it loops through the categories. So 15 categories, each item listed 15 times in the dropdowns. I need to figure out a way to only list each instance of each item one time.