<?php

include "funciones.php";
include "prueba.php";
session_start();
$user = $_SESSION['user'];
$tipo = $_SESSION['tipo'];
//$questions = getAllQuestions();
$questions = viewAllQuestions();
?>
<!DOCTYPE html>
<html>
  <head>
	<meta name="tipo_contenido" content="text/html;" http-equiv="content-type" charset="utf-8">
	<link rel="stylesheet" type="text/css" href="estilosMario/register.css" media="screen" />
	<script type="text/javascript" src="scripts/scriptValores.js"></script>
	<script type="text/javascript" src="scripts/scriptValidadores.js"></script>
	<script type="text/javascript" src="scripts/scriptAñadirCampos.js"></script>
	
	<script>
		var questions = <?php 
echo $questions;
?>
;
		/*var index = 0;
		var aciertos = 0;
		var totalPreguntas = 0;
		
		selectRandomQuestion();
		
		function selectRandomQuestion() {
<?php

include "funciones.php";
viewAllQuestions();