<?php foreach (mysql_fetch_assoc($objet->consulta_db($sql)) as $elemento) { echo "<option value=".$elemento.">".$elemento."</option>"; }