Jump to content

Listbox Help


nickptaylor85

Recommended Posts

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.....

Link to comment
https://forums.phpfreaks.com/topic/265290-listbox-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/265290-listbox-help/#findComment-1359583
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.