I have two drop down lists in my form- catagory and the second one sub-catagory.When user selects a particular catagory corresponding sub-catagory should be displyed in the second drop down list for further user selection.I am using PHP-Mysql in dreamweaver.When i preview the first list is working properly but the second one is not.
when i test my record set using test value i am getting the current subcatagories.How is it possible to autopopulate the drop down list?
Subcatagory-recordset query
SELECT Sub_catagory
FROM subcatagory
WHERE Catagory = 'colname'
ORDER BY Sub_catagory ASC