nickptaylor85 Posted July 6, 2012 Share Posted July 6, 2012 I am wondering if anyone can help me or at least point me in the right direction. I am trying to create a Dynamic Listbox with check boxes, like http://www.nickandnisse.com/screenshot.jpg I have an SQL Table called Categories with the columns "Category" and "ID" I have another table called Subcategory with the fields "ID" "Category" and "Subcategory" What I'd like to do is have the listbox generate with categories as the unique Parent and then nested below that the subcategories related to that category. Hope this makes sense..... Quote Link to comment Share on other sites More sharing options...
Psycho Posted July 6, 2012 Share Posted July 6, 2012 What you are asking is really a JavaScript problem. You may need PHP to help populate the listbox(es), but the framework to make them work will require JavaScript. So, until you have a JavaScript solution there's nothing that PHP can do with this. Moving to the JavaScript forum. FYI: You might want to look into JQuery - it might already have a pre-built solution. Quote Link to comment Share on other sites More sharing options...
nickptaylor85 Posted July 6, 2012 Author Share Posted July 6, 2012 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.