elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
26 Mayo 2012, 16:50  


Tema destacado: Grupo de Facebook de elhacker.net

+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web
| | |-+  insertar en table
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: insertar en table  (Leído 167 veces)
xemnas

Desconectado Desconectado

Mensajes: 75


Ver Perfil
insertar en table
« en: 18 Octubre 2011, 20:26 »

 hola a tod@s, alguien me podria decir como meter estos datos en un table?, gracias.
<?php

        $indice_datos=array("Nombre", "Apellidos", "Telefono");
       
        $datos=array(
                     array("Javi", "Climent", "12345"),
                     array("Carlos", "Bañuls", "234567"),
                     array("Borja", "Rodriguez", "432342"),
                           );
     
        $i=0;
        while($i<count($indice_datos)){
            echo ($indice_datos[$i]."</br>");
            $i++;
   
        }
      $i=0;
      while($i<count($datos)){
      $j=0;
      print ("<tr>");
            while($j<count($datos[$i])){
         print ("</tr>");
         echo ($datos[$i][$j]);
         $j++;
            }
         $i++;
       }
   ?>


En línea
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
% Table
Programación C/C++
Erik# 3 483 Último mensaje 12 Octubre 2008, 18:42
por VirucKingX
Invalid partition Table.
Windows
OxIdAo 6 2,977 Último mensaje 9 Abril 2010, 00:41
por OxIdAo
Recorrer una table
Programación General
sasj13 1 1,273 Último mensaje 24 Junio 2010, 13:22
por jlrvpuma
Debian en un table
GNU/Linux
GeorgArming 6 394 Último mensaje 17 Abril 2012, 22:15
por GeorgArming
Recomendación Table Pc
Dispositivos Móviles (PDA's, Smartphones)
perezfjv 0 54 Último mensaje 20 Mayo 2012, 14:19
por perezfjv
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines