I want PHP to return all the Categories and SubCategories from the database, and somehow put them inside my html document for Java to process.
A category <select> box and subcategory <select> box exist on the page. I want the content for subcategory to change when the user changes the category, (without re-querying the database)
My only problem is getting an array from PHP which looks something like:
Code: Select all
subcategories[parentCategoryID, Description]