Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2013, 01:26
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 17 años
Puntos: 574
Respuesta: Php, join, order by

Código MySQL:
Ver original
  1. $filtro="Select turf_carrr.*, turf_poscns.* from turf_poscns ".
  2.             "LEFT JOIN turf_carrr ON turf_poscns.idcarrr=turf_carrr.idcarrr " .    
  3.             "Where turf_poscns.idcabll='$idcabll' and turf_poscns.poscn !='0' ".
  4.             "and turf_poscns.poscn !='00' and turf_poscns.poscn !='NC' ".
  5.             "order by turf_poscns.idcarr desc ";

Ahora?
__________________
Quim
--------------------------------------------------
Ayudar a ayudar es una buena práctica!!! Y da buenos resultados.