OK Query/Drop-Down first:
$db = mysql_connect("localhost", "root"); // database connection
mysql_select_db("mydbname"); // select the database
$sql = "SELECT whatever FROM whatever WHERE whatever=whatever"; // SQL code
$qry = mysql_query($sql, $db); // query
echo "<select name=\"myselect\">";
while ($res = mysql_fetch_array($qry)) {
// create variables from the results
$field1 = $res["field1"];
$field2 = $res["field2"];
.. and so on
// complete the drop-down
echo "<option value=\"id=$field1\">$field1"; // this will loop the results
}
echo "</select>" // end of the drop-down
OK so when this gets submitted the it will pass the variable $myselect with the value of the select. Use this to run the second query.
Anyway, I need to get on with some work now, I will post more code tomorrow (javascript etc)
HTH.