Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/06/2010, 10:15
Avatar de leo_nqn
leo_nqn
 
Fecha de Ingreso: abril-2010
Ubicación: Neuquen
Mensajes: 461
Antigüedad: 14 años, 10 meses
Puntos: 24
Respuesta: Traer datos a un select con php

Solucionado! gracias!!! quedaria asi el codigo!!

Código:
<select name="localidad" id="localidad">

<?php

include('conexionclinica.php');

$result = mysql_query("SELECT * FROM clinica.localidad");
while ($row=mysql_fetch_array($result)) {
?>

<option value="<?php echo $row['Id_Localidad'];?>"> <?php echo $row['Detalle_Localidad'];?> </option>

<?php
}
mysql_close($link);
?>
</select>