forked from Freakisimo/mundore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetalles.php
More file actions
32 lines (31 loc) · 1.48 KB
/
detalles.php
File metadata and controls
32 lines (31 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<?php include('php/conexion_mysql.php'); ?>
<link rel="stylesheet" href="css/style_detalles.css">
<title></title>
</head>
<body ="algo">
<img id="encabezado" src="Imagenes/let_performance.jpg" alt="">
<?php
$nomb=$_GET["nombre"];
$ganadores = mysql_query("SELECT imagen, nombre, puesto, estado, fecha_ingreso, ganado_por, fecha_nacimiento, hobbies, domicilio FROM ganadores WHERE nombre = '$nomb'");
$resultado = mysql_fetch_array($ganadores, MYSQL_NUM);
echo "<section id='detalles'>";
echo "<table id='detalles'>";
echo "<thead><tr><th><a href='mundore.php'>Regresar</a></th><th colspan='2'><h2>$resultado[2]</h2></th></tr></thead>";
echo "<tr><td id='titulo' rowspan='9'><img id='detalles' src='$resultado[0]' alt=''></td></tr>";
echo "<tr><td id='titulo'>Nombre</td><td>$resultado[1]</td></tr>";
echo "<tr><td id='titulo'>Posicion</td><td>$resultado[2]</td></tr>";
echo "<tr><td id='titulo'>Estado</td><td>$resultado[3]</td></tr>";
echo "<tr><td id='titulo'>Fecha de ingreso a la compañia</td><td>$resultado[4]</td></tr>";
echo "<tr><td id='titulo'>Ganado por</td><td>$resultado[5]</td></tr>";
echo "<tr><td id='titulo'>Cumpleaños</td><td>$resultado[6]</td></tr>";
echo "<tr><td id='titulo'>Hobbies</td><td>$resultado[7]</td></tr>";
echo "<tr><td id='titulo'>Domicilio</td><td>$resultado[8]</td></tr>";
echo "</table>";
echo "</section>";
?>
</body>
</html>