Título: insertar en table Publicado por: xemnas 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++; } ?> |