<?php
date_default_timezone_set('America/Argentina/Buenos_aires');
$conexion= mysqli_connect("localhost","root","","juegos");
$sql2="SELECT username, juegoname, puntaje FROM juegousuariopuntaje INNER JOIN usuarios on ID_usuario=ID INNER JOIN juegos WHERE juegos.ID=ID_juego";
$bbto=mysqli_query($conexion,$sql2);
$dou2=mysqli_fetch_all($bbto,MYSQLI_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Juegos DOUUU</title>
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="Estilos.css">
<link rel="shortcut icon" href="Dou">
<script type="text/javascript" src="jquery-3.4.1.min.js"></script>
</head>
<script>
$(document).ready(function() {
$("body").css("display", "none");
$("body").fadeIn(2000);
$("a.transicion").click(function(event){
event.preventDefault();
linkDestino = this.href;
$("body").fadeOut(1000, redireccionarPag);
});
function redireccionarPag() {
window.location = linkDestino;
}
});
</script>
<body>
<header>
<nav>
<ul class="navegacion">
<ul class="menu">
<li><a href="../Inicio/index.html">Inicio</a></li>
<li><a href="">Usuario</a></li>
<li><a href="">Puntaje</a></li>
</li>
</ul>
</ul>
</nav>
</header>
<div class="Cuadrotexto">
<tr>
<th>Usuario</th>
<th>Consola</th>
<th>Marca de la consola</th>
</tr>
<tr>
<th>usuario</th>
<th>juegos</th>
<th>puntaje</th>
</tr>
<?php
echo "<tr>";
echo "<td>";
foreach ($dou2 as $key ) {
echo $key['username']. '<hr>';
}
echo "</td>";
echo "<td>";
foreach ($dou2 as $key) {
echo $key['juegoname'].'<hr>';
}
echo "</td>";
echo "<td>";
foreach ($dou2 as $key) {
echo $key['puntaje'].'<hr>';
}
echo "</td>";
echo "</tr>";
?>
</body>
</html>
</html>