Ver Mensaje Individual
  #21 (permalink)  
Antiguo 22/04/2009, 11:37
TIFORO
 
Fecha de Ingreso: junio-2008
Ubicación: Madrid
Mensajes: 374
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Select dinamico

Ya con este codigo ya me sale bien voy terminado poco a poco:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form>
<select name="nombre">
<?php


$sql = "SELECT nombre FROM id_usuarios WHERE nombre != ''";
$consulta_numero1 = mysql_query($sql,$conexion);

while(list($nombre) = mysql_fetch_row($consulta_numero1)) {
?>

<option value="<?php echo $nombre;?>"><?php echo $nombre;?></option>
<?php } ?>
</select>
</form>
</body>
</html>
__________________
Cada día se aprende algo nuevo

Última edición por TIFORO; 22/04/2009 a las 11:44