Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/11/2004, 05:04
Avatar de yampoo
yampoo
 
Fecha de Ingreso: noviembre-2001
Ubicación: Vilanova i la Geltrú
Mensajes: 1.942
Antigüedad: 22 años, 5 meses
Puntos: 0
Siento la tardía, pero sigue sin funcionar.

<html>
<head>
<title>Prueba rellenar combobox</title>
</head>
<body>
<select name="nombre" id="nombre">
<?php
$link = mysql_conect("localhost","sergios_sergio","marihua na");
mysql_select_db("sergios_spider", $link);
$result=mysql_query("select nombre_comp from componente", $link);

$filas = mysql_fetch_row($result);
$num_filas = mysql_num_rows($result);

for($w=0; $w<$num_filas; $w++)
{

echo "<option";

if ($filas[0]==$nombre)
echo " selected>";

else
echo ">";
echo $filas[0], "</option>";
$filas = mysql_fetch_row($result);

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

</body>
</html>


Me sigue sin mostrar nada...