I'm relatively experienced in PHP, but I'm a complete newbie when it comes to Java, so I need some help here if anyone has some experience.
I'm working on a PHP/mySQL e-commerce site for my buddy's law enforcement equipment store. As part of a search for a holster, the customer needs to be able to choose a gun make, and then choose a gun model.
I currently have two drop-down menus populating from a mySQL db, no problems there. The problem is I'd rather be able to use javascript to have the second menu (gun models) dynamically repopulate when the gun make is selected. I can find scripts for dynamic repopulating menus, but I seem to be having a hell of a time figuring out how to populate those menus with a query.
If it matters the gun_make table has primary field gun_id and field gun_name, the gun_model table has primary field gun_model_id and fields gun_id and gun_model_name.
I've searched all over the web, but can't seem to find any help with this particular problem. Anyone have a clue?
I'm working on a PHP/mySQL e-commerce site for my buddy's law enforcement equipment store. As part of a search for a holster, the customer needs to be able to choose a gun make, and then choose a gun model.
I currently have two drop-down menus populating from a mySQL db, no problems there. The problem is I'd rather be able to use javascript to have the second menu (gun models) dynamically repopulate when the gun make is selected. I can find scripts for dynamic repopulating menus, but I seem to be having a hell of a time figuring out how to populate those menus with a query.
If it matters the gun_make table has primary field gun_id and field gun_name, the gun_model table has primary field gun_model_id and fields gun_id and gun_model_name.
I've searched all over the web, but can't seem to find any help with this particular problem. Anyone have a clue?