Thanks in advance for any help that you may be able to provide. I'm a graphic designer with VERY limited knowledge of php, javascript, etc. I'm trying to create a form on my company's website that will allow customers to view specifications for particular products. I'm trying to use selection boxes to narrow the customer's search, with the selection from the second box dependent on the first, and the resulting information displayed dependent on the choice from the second list.
So far, I've only been able to adapt some code I found in a tutorial to display the data in the first selection box. No matter what I've tried, I can't seem to get any information to display in the second box, let alone information that is dependent on the first selection. I am brand new to php and javascript, and I didn't even know AJAX, JSON, or JQuery even existed until only a few days ago. Below is the three php files I'm using to try and make this work. If someone could point out what is wrong with it, I would be eternally grateful.
Here is the code from db.php, the file I'm using to connect to my database:
Here is the code from func.php, the file with all the functions and database queries:
Finally, this is the code from index.php, the file with the form, javascript and the AJAX:
Here's the page on my website. I'm using Joomla for my website, and the above php is loaded into a module at the bottom of the page:
TNT Enclosed Trailer Dimensions