Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/07/2008, 12:16
Avatar de foreverOdd
foreverOdd
 
Fecha de Ingreso: noviembre-2007
Ubicación: Caracas
Mensajes: 489
Antigüedad: 16 años, 5 meses
Puntos: 14
Respuesta: Select+for bucle repetitivo

tratan con una sola consulta:
Código PHP:


$sql
="SELECT * FROM guia WHERE idcliente_e  in ($id,(SELECT codcliente_pk FROM cliente WHERE padre='$id'=) or idcliente_d in ($id,(SELECT codcliente_pk FROM cliente WHERE padre= '$id'))"
__________________
My path is lit by my own fire, I only go where I desire