Re: Consulta php/mysql
| From: | Gustavo Camacho | Date: | Thu, 05 Feb 2004 23:26:39 +0000 |
| Subject: | Re: Consulta php/mysql | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-45237@lists.php.net to get a copy of this message | ||
<TU SCRIPT>
<select name="Tema">
<?php
$result=mysql_db_query("bd","SELECT DISTINCT Tema FROM tabla ORDER BY Tema
ASC");
while ($row=mysql_fetch_array($result)){
echo'<option
value="'.($row["Tema"]).'">'.($row["Tema"]).'</option>';
}
mysql_free_result($result);
?>
</select>
</TU SCRIPT>