<?php if (!isset($_SESSION['id_user'])){ echo '<script> window.location = "' . $url . '/home"; </script>'; } //$id = $pagina[1]; $id=1; $query = mysqli_query($connect, "SELECT * FROM Asistentes WHERE id = " . $_SESSION['id_user']); $data = mysqli_fetch_array($query); $query = mysqli_query($connect, "SELECT * FROM juego_virtual WHERE id = " . $id); $juego = mysqli_fetch_array($query); ?> <div class="container-fluid" > <div class="row"> <div class="col-4"> <h2><?php echo $juego['nombre']; ?> </h2> <span> <?php echo $juego['descripcion']; ?> </span><br> <b>visita a:</b> <?php echo $juego['lugar']; ?> <h3>Preguntas</h3> <?php $query = mysqli_query($connect, "SELECT * FROM preguntas_google WHERE juego_virtual_id = " . $juego['id']); while($pregunta = mysqli_fetch_array($query)) { echo $pregunta['pregunta']."<br>"; } ?> </div> <div class="col-4"> <iframe width="100%" height="500px" style="border:0" loading="lazy" allowfullscreen src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAw_VEeJAY7R9kuABvgz9e9CiKogTW3MFc&q=America"> </iframe> </div> <div class="col-4" style="height: 500px; overflow: scroll; overflow-x: hidden;"> <?php include("chat.php"); ?> </div> </div>