Actividad de aprendizaje 2 - Desarrollo web con php sena
Enviado por Daniel Alexander Paz • 12 de Julio de 2018 • Trabajos • 265 Palabras (2 Páginas) • 5.757 Visitas
<?php
/*
Nombre: Daniel Alexander Paz Rodríguez
Programa: Desarrollo web con PHP
Ficha: 1727875
Evidencia: Taller "Uso de arreglos"
*/
// Se crea un arreglo con los datos de las personas
$arreglo_datos=array
(
array("Daniel Paz", "Cra. 45 # 45-56","565-694-2210","13/04/1998", "Blanco"),
array("Yael Díaz","875 Langosh Ranch","556-179-2035","14/06/2002","Rojo"),
array("Ada Peréz","Clle. 23 # 12-19 Sur","472-829-806","23/12/1997", "Naranja"),
array("Alex Ortiz","Av. 34 # 16-12","(603) 387-1630","12/10/1980", "Amarillo"),
array("Luz Yepes","5423 Zieme Underpass","1-219-744-1485","30/11/1990", "Azul")
);
// Se crea un arreglo con los colores y su significado
$arreglo_colores=array
(
"Rojo"=>"Persona enérgica y vitalista",
"Naranja"=>"Persona divertida y sensual",
"Amarillo"=>"Persona inquisitiva y curiosa",
"Azul"=>"Persona comunicativa",
);
// Se crea una variable que va a contener la estructura HTML de la tabla
$tabla="<table width='60%' align='center'>
<thead>
<tr>
<th bgcolor='#0080C0'>Nombre</th>
<th bgcolor='#0080C0'>Dirección</th>
<th bgcolor='#0080C0'>Teléfono</th>
<th bgcolor='#0080C0'>Fecha de cumpleaños</th>
<th bgcolor='#0080C0'>Color favorito</th>
<th bgcolor='#0080C0'>Significado</th>
</tr>
</thead>
<tbody>";
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
...