![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/02/2003, 13:37
|
| | Fecha de Ingreso: julio-2002
Mensajes: 119
Antigüedad: 22 años, 6 meses Puntos: 0 | |
sabes que no me resulta;
lo que hace tu scrip es eliminar el registro que es igual al indice y selecciona la lista en si y no dirigida a un indice en especial
te mando el codigo que estoy usando a ver si te es mas facil así...
de antemano gracias
<select name="tip_hab">
<?
$result = mysql_query("SELECT cod_tipo_habitacion, nom_tipo_habitacion FROM tipo_de_habitacion");
while ($row=mysql_fetch_array($result))
{
echo '<option value="'.$row["cod_tipo_habitacion"].'">'.$row["nom_tipo_habitacion"].'</option>';
}
?>
</select> |