elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Curso de javascript por TickTack


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  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 1,450 veces)
xemnas

Desconectado Desconectado

Mensajes: 105


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

 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
Sacar las enlaces de un table de una web
Programación Visual Basic
‭lipman 0 1,244 Último mensaje 6 Septiembre 2007, 22:23 pm
por ‭lipman
Recorrer una table
Programación General
sasj13 1 3,591 Último mensaje 24 Junio 2010, 13:22 pm
por jlrvpuma
Debian en un table
GNU/Linux
GeorgArming 6 3,159 Último mensaje 17 Abril 2012, 22:15 pm
por GeorgArming
Recomendación Table Pc
Dispositivos Móviles (PDA's, Smartphones, Tablets)
perezfjv 0 1,887 Último mensaje 20 Mayo 2012, 14:19 pm
por perezfjv
Colocando <div> en vez de <table>
Desarrollo Web
bels_mike 1 1,560 Último mensaje 3 Enero 2013, 17:30 pm
por cassiani
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines