Per farlo devi scorrere ogni riga dei risultati della query e usare queste informazioni per ciascuna opzione della tendina. Dovresti riuscire ad adattare facilmente il codice qui sotto alle tue esigenze.
// Assume $db is a PDO object $query = $db->query("YOUR QUERY HERE"); // Run your query echo '<select name="DROP DOWN NAME">'; // Open your drop down box // Loop through the query results, outputing the options one by one while ($row = $query->fetch(PDO::FETCH_ASSOC)) { echo '<option value="'.$row['something'].'">'.$row['something'].'</option>'; } echo '</select>';// Close your drop down box