Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/07/2013, 15:26
chubse
 
Fecha de Ingreso: marzo-2012
Mensajes: 84
Antigüedad: 12 años, 1 mes
Puntos: 3
Respuesta: Nombre de columnas Phpexcel

Te agradezco mucho tu respuesta ocp001a, de hecho sí lo intenté pero los datos los pinta de manera horizontal:

Código PHP:
$result_6=mysql_query("SELECT FECHA_ASIST FROM ml_dat_ASISTENCIA WHERE ID_GRUPO='".$nombre_gpo."' GROUP BY FECHA_ASIST ORDER BY FECHA_ASIST ASC");

    
$rowNumber6 1;
    while (
$row6 mysql_fetch_row($result_6)) {
       
$col6 'F';
       foreach(
$row6 as $cell6) {
          
$objPHPExcel->getActiveSheet()->setCellValue($col6.$rowNumber6,$cell6);
      
          
$col6++;
       }
       
$rowNumber6++;
    } 
¿No sé de qué manera escribir la sentencia para poder pintar la consulta de manera horizontal?

De antemano gracias