So I have a single drop down menu populated from data base, now i want to get a bit snazzy and select from the first and from the selected then populate the 2nd drop down to select and then link to a url.
Here is my code for first drop down which is populating fine, where do i go from here?
$query = "SELECT DISTINCT Manufacturer from manufacturers ORDER BY Manufacturer ASC";
// Execute it, or return the error message if there's a problem.
$result = mysql_query($query) or die(mysql_error());
$dropdown = "<select name='products'>";
while($row = mysql_fetch_assoc($result)) {
$dropdown .= "\r\n<option value='{$row['Manufacturer']}'>{$row['Manufacturer']}</option>";
}
$dropdown .= "\r\n</select>";
echo $dropdown;
mysql_close($con);
?>