Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/05/2009, 09:09
kike278
 
Fecha de Ingreso: abril-2008
Mensajes: 62
Antigüedad: 16 años
Puntos: 1
Pregunta Consulta Especial con PHP y MySQL

Que tal Buen dia, tengo el siguiente problema
Debo realizar una consulta de este tipo:

Código PHP:
$sql mysql_query("select DISTINCT cliente,rsocial,status from factura where fechaemfac between '$fecha1' and '$fecha2' order by rsocial",$conexion); 
el problema es q necesesito q me muestre en forma de tabla los siguientes datos:

Cliente 1: xxxxxxx

Status de la Factura | Factura | Subtotal |
xxxxxxxxxxxxxxxx xxxx xxxxxx
xxxxxxxxxxxxxxxx xxxx xxxxxx

Cliente 2: xxxxxxxx

Status de la Factura | Factura | Subtotal |
xxxxxxxxxxxxxxxx xxxx xxxxxx
xxxxxxxxxxxxxxxx xxxx xxxxxx

y asi sucesivamente con todos los clientes .