Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/02/2009, 06:41
nakiox
 
Fecha de Ingreso: diciembre-2007
Mensajes: 104
Antigüedad: 16 años, 4 meses
Puntos: 4
Respuesta: Realizar un Select desde PHP

Mira, podrías hacer algo asi:

Código:
<?php

include('CONECCIONADB.php');
echo "<select name='pepe'>";

$result = MYSQL_QUERY("SELECT * FROM datos");

while($actual = mysql_fetch_array($result)) {
echo "<option>".$actual['valor']."</option>";
}

echo "</select>";

?>