Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2005, 09:31
Avatar de lado2mx
lado2mx
Colaborador
 
Fecha de Ingreso: agosto-2001
Ubicación: Veracruz
Mensajes: 3.720
Antigüedad: 22 años, 8 meses
Puntos: 9
Que tal así:
Código PHP:
<? ?><td bgcolor="#ccffff"><select name="opcion" tabindex="4">
<?php
$result_opcion
mysql_query("SELECT id, opcion FROM opciones");
$fila 0;
$num_filas mysql_num_rows($result_opcion);
while(
$fila $num_filas) {
$row mysql_fetch_array ($result_opcion);

echo 
"<option value=\"".$row['id']."\"";
if(
$opciones == $row["opcion"]) { echo "selected"; }
echo 
">".$row['option']."</option>";
$fila++;
}
?>
</select>
</td>