Ver Mensaje Individual
  #10 (permalink)  
Antiguo 09/09/2010, 14:22
Avatar de mortiprogramador
mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 15 años, 5 meses
Puntos: 214
Respuesta: ayuda con clase para devolver registros para imprimir

Bueno, sería algo así

Código PHP:

// displaying records in a table
echo "<table border=1>";

$i 0;
//total of records of first array
$j count($result);
while( 
$i $j )
    {
    
$k=0;
    
//second array
    
$otroresult $result[$i];
    
//total of records of second array
    
$l count($otroresult);
    echo 
"<tr>";
    while( 
$k $l )
    {
        echo 
"<td>$otroresult[$k]</td>";
        
$k++;
    }
    
$i++;
    echo 
"</tr>";
}

echo 
"</table>"
pruebalo y comentas
saludos
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com

Última edición por mortiprogramador; 09/09/2010 a las 14:30