Cita:  
					Iniciado por pateketrueke  
  mmm.... ¿sabes Ajax??
    No se Ajax.  
 Cita:  
					Iniciado por pateketrueke  
  la función mostrar() ¿que hace???
    La función mostrar no hace nada de momento pues no se bien cómo llevar a cabo esto que pido.  
Teóricamente la función 
mostrar ha de crear la consulta dependiendo del valor pasado como parámetro, ejecutarla y luego mediante un bucle while debe de ir mostrando los registros. 
Por ejemplo:  
 Código PHP:
    <?
function mostrar($Opcion) {
   $link = mysql_connect("localhost", "user", "0000");
   mysql_select_db("Prueba", $link);
   $Select = mysql_query("select * from Tabla where opcion = ".$Opcion);
   while ($Recorre = mysql_fetch_array($Select)) {
      echo $Recorre['Codigo']; 
   }
}
?>
<html>
    <head>
    </head>
    <body>
        <form name = "prueba1">
            <select name = "evento">
            <option value = "" selected> Selecciona opción...</option>
            <option value = "opcion1" onClick = "mostrar('uno')"> Opción 1</option>
            <option value = "opcion2" onClick = "mostrar('dos')"> Opción 2</option>
            <option value = "opcion3" onClick = "mostrar('tres')"> Opción 3</option>
            <option value = "opcion4" onClick = "mostrar('cuatro')"> Opción 4</option>
            </select>
        </form>
    </body>
</html>   
  Pero no me funciona, me dice: 
Error: mostrar is not defined 
¿Alguna idea?