a parte che il tag html se lo apri lo dovresti anche chiudere ... a parte che una select se la apri la dovresti anche chiudere


codice:
<?php
$select = '<select name="selezione">';
$query = mysql_unbuffered_query("SELECT nome,codice FROM tabella ORDER BY id", $db);
while(@$r = mysql_fetch_row($query))
	$select .= '<option value="'.$r[1].'">'.$r[0].'</option>';
$select .= '</select>';
echo $select;
?>




[edit]
ciao marchigiano