Monthly Archive: October 2011

Oct 28

Category Hierarchy into Select Box

For those interested in implementing a list of category items into a select box, here is a simple method for doing so. This will require only 1 query (assuming you store the category id and the parent id in the table). Organize your categories into a set of arrays function OrganizeCategories() { $refs = array(); …

Continue reading »