Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/04/2016, 11:37
Avatar de petit89
petit89
 
Fecha de Ingreso: marzo-2011
Mensajes: 1.135
Antigüedad: 13 años, 1 mes
Puntos: 170
Respuesta: Poner links en select option

Código PHP:
Ver original
  1. <select id="autores" name="autores" size="17" onchange="location = this.value;">  
  2.     <?php  
  3.     $a=1;
  4.     while ( $row = $result->fetch_array() )  
  5.     {
  6.         $ide = $row[ID];
  7.         $nom = utf8_encode($row[$a]);
  8. echo '<option value="autores.php?codi='.$ide. '">'.$nom.'</option>';
  9.        
  10.     }  
  11. //* cerrar conexión */
  12. mysqli_close($link);  
  13.     ?>
__________________
█ WebHosting / Reseller a bajo costo | Uptime Garantizado | Soporte en Español e Ingles
¿Te sirvió la respuesta? Deja un +1 (Triangulo negro al lado derecho)