Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/12/2014, 08:41
mauritosuarez
 
Fecha de Ingreso: octubre-2014
Ubicación: Buenos Aires
Mensajes: 278
Antigüedad: 9 años, 7 meses
Puntos: 12
Respuesta: crear tabla con array

Hola trofserpiente, tienes mal definida la tabla, primero debes agregar los campos de la cabecera de la tabla y luego buclear los datos.

ej. debes adecuar el código a tus necesidades.

Código PHP:
Ver original
  1. <table>
  2.     <tr>
  3.         <th>clientes</th>
  4.         <th>producto 1</th>
  5.         <th>producto 2</th>
  6.         <th>producto 3</th>
  7.      </tr>
  8.  
  9.      // Acá comenzar el buchel
  10.  
  11. <?php for($y=0;$y<=$num_c;$y++) { ?>
  12.       <tr>
  13.         <th><?php //dato 1; ?></th>
  14.         <th><?php //dato 2; ?></th>
  15.         <th><?php //dato 3; ?></th>
  16.         <th><?php //dato 4; ?></th>
  17.      </tr>
  18. <?php } ?>
  19.  
  20. </table>


Espero te sirva.

Saludos.
__________________
http://www.sp-vision.net