Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/01/2014, 07:07
charly_lpg
 
Fecha de Ingreso: octubre-2013
Mensajes: 56
Antigüedad: 11 años, 4 meses
Puntos: 1
select anidado

Hola A todos.
Tengo un pequeño problema con un select anidado o combinado.

no me trae ningun dato hice un print_R y me da el siguiente error

Array ( [id] => undefined [rand] => 53324220 )

alguien me podira dar una mano?

Les paso el codigo

Código PHP:
<?php include ("conn.php");?>

    <form name="selcia" action="">
        <div>
            Cias:
<select name="cia"  onchange=from(document.selcia.value,'divtc','select_tc.php')>
<?php 
$sql 
"SELECT DISTINCT cia,aerolinea,tarjeta,banco,cuotas FROM coeficientes";
$res mysqli_query($conn$sql);
echo
"<option value='ZZ'>Elegir CIA</option>";
    while (
$fila mysqli_fetch_assoc($res)) {
        echo
"<option value=".$fila['cia'].">".$fila['cia']." - ".$fila['aerolinea']."</option>";
    }
?>    
</select>
        </div>
        
        <div id="divtc">
        Tarjeta:
        <select name"" id"">
        <option value-"zz">Seleccione</option>
        </select>            
        </div>
    
    
    
    </form>
Desde ya muchas gracias

Saludos
MArcelo