Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/05/2014, 09:47
BaSingSe
 
Fecha de Ingreso: mayo-2012
Mensajes: 117
Antigüedad: 12 años, 9 meses
Puntos: 1
Respuesta: PHP consulta mysql (unir 3 tablas)

Gracias arros, lo termine resolviendo de esta manera

SELECT t1.id_usuario, t1.nombre_cliente, t1.apellido_cliente, t1.apellido2_cliente, t2.monto, t2.porciento_referido, t2.estado, t3.sup_area
FROM cliente_referido t1 INNER JOIN servicios t2 ON (t1.id_cl = t2.id_cliente)
INNER JOIN super_usuario t3 ON (t2.sup_id = t3.sup_id) WHERE t1.id_usuario = 4

tal que pude unir las 3 tablas en una sin hacer bucle dentro de bucle...

ya pueden cerrar el tema :D