Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/04/2014, 11:20
Avatar de Alexis88
Alexis88
Philosopher
 
Fecha de Ingreso: noviembre-2011
Ubicación: Tacna, Perú
Mensajes: 5.552
Antigüedad: 12 años, 6 meses
Puntos: 977
Respuesta: Trabajar con arrays

¿Y si lo haces así?

Código PHP:
Ver original
  1. while ($row = $res->fetch_array()){
  2.     if (!is_null($row["a1"]) && !is_null($row["a2"]) && !is_null($row["a3"]) &&
  3.         !is_null($row["a4"]) && !is_null($row["a5"]) && !is_null($row["a6"])){
  4.         $a1[$i] = $row["a1"];
  5.         $a2[$i] = $row["a2"];
  6.         $a3[$i] = $row["a3"];
  7.         $a4[$i] = $row["a4"];
  8.         $a5[$i] = $row["a5"];
  9.         $a6[$i] = $row["a6"];
  10.  
  11.         //Imprimir PDF
  12.  
  13.         $i++;
  14.     }
  15. }
__________________
«Juro por mi vida y mi amor por ella, que jamás viviré para el provecho de otro hombre, ni le pediré a otro hombre que viva para el mío».

Ayn Rand