Tema: Ayuda pliss
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/03/2011, 20:44
clavena
 
Fecha de Ingreso: septiembre-2010
Ubicación: Santiago, Chile
Mensajes: 47
Antigüedad: 13 años, 6 meses
Puntos: 0
Ayuda pliss

Hola, miren tengo el siguiete codigo
Código PHP:
<?php  do
    {
        echo 
'<tr>';
            echo 
'<td bgcolor="#000000"><div aling="center" class="Estilo1">'.$row_rsPeriodo['fecha'].'</td>';
            do
            {    
                if(
$row_rsPeriodo['periodo'] == $row_rsFact['periodo'])
                {
                    echo 
'<tr>';
                        echo 
'<td width="51">'.$row_rsFact['n_factura'].'</td>';
                        echo 
'<td widht="144">'.$row_rsFact['fecha_enviada'].'</td>';
                        echo 
'<td widht="144">'.$row_rsFact['fecha_prestacion'].'</td>';
                        echo 
'<td widht="144">'.$row_rsFact['fecha_emision'].'</td>';
                        echo 
'<td widht="117">'.$row_rsFact['tipo_pago'].'</td>';
                        echo 
'<td widht="125">'.$row_rsFact['forma_pago'].'</td>';
                        echo 
'<td widht="122">'.$row_rsFact['factura_firmada'].'</td>';
                        echo 
'<td widht="144">'.$row_rsFact['fecha_pago'].'</td>';
                        echo 
'<td widht="237">'.$row_rsFact['cliente'].'</td>';
                        echo 
'<td widht="189">'.$row_rsFact['monto_total'].'</td>';
                        echo 
'<td widht="195">'.$row_rsFact['iva'].'</td>';
                        echo 
'<td widht="204">'.$row_rsFact['monto_iva'].'</td>';
                        echo 
'<td widht="138">'.$row_rsFact['monto_deuda'].'</td>';
                        echo 
'<td widht="157">'.$row_rsFact['ganancia_real'].'</td>';
                    echo 
'</tr>';
                }
            }while (
$row_rsFact mysql_fetch_assoc($rsFact));
        echo 
'</tr>';        
    }while (
$row_rsPeriodo == mysql_fetch_assoc($rsPeriodo));?>
La cosa es que imprime un periodo y despues todas las facturas de ese periodo,
pero no imprime el segundo periodo ni las facturas, solo en la primera vuelta del bucle. Como lo puedo arreglar??

Saludos