![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/04/2004, 21:54
|
![Avatar de sism82](http://static.forosdelweb.com/customavatars/avatar44724_1.gif) | | | Fecha de Ingreso: octubre-2003 Ubicación: Guadalajara
Mensajes: 865
Antigüedad: 21 años, 3 meses Puntos: 1 | |
<?
$sqlCombo = "SELECT * FROM tablaCombo";
$rssCombo = mysql_query($sqlCombo,$conexion);
$htmlCombo = "";
while($combo = mysql_fetch_object($rssCombo)){
$htmlCombo .= '<option value=".$combo->campo1.">".$combo->campo2."</option>';
}
?>
luego en el html
<select name="nombre">
<? echo $htmlCombo; ?>
</selec>
es la opcion mas sencilla, dudas? |