Populate dropdown PHP MySQL
Hi,
I have 4 dropdowns in a table and would like the first two to work together dynamically. (i.e second dropdown should populate based on first dropdown selection) the last two dropdowns are static.
I have found some code on a website (http://www.plus2net.com/php_tutorial/php_drop_down_list.php if it could help someone else) and it works fine, until I try to take it apart to work as I want it to and not like the author coded it. On that code, everything is inside one "PHP code (i.e <?php EVERYTHING IS HERE ?>)" and I edited the code accordingly to fit my table. The query part I put into my header and the actual functions on the page where they should be. The data gets extracted from the DB but the function to re-populate as soon as the first dropdown was selected fails.
Does anyone have any advice or anything else that could help my case?
Regards
