<?php
require'fun.php';
$titlu='Intrebare Quizz';
$back[1]='<a href="/quizz">Quizz</a>';
require'f_sus.php';
if($page==1)
$conn->query('INSERT INTO`quiz_membrii`SET`easy_question`="'.$fid.'",`easy_next`="'.$fid.'",`med_question`="'.$fid.'",`med_next`="'.$fid.'",`hard_question`="'.$fid.'",`hard_next`="'.$fid.'",`de`="'.$de.'"');
$quizz_membru=$conn->query('SELECT`easy_question`,`easy_next`,`med_question`,`med_next`,`hard_question`,`hard_next`FROM`quiz_membrii`WHERE`de`="'.$de.'"')->fetch_assoc();
if($quizz_membru[$cid.'_question']!='')
$fid=$quizz_membru[$cid.'_next'];
$row_quiz=$conn->query('SELECT`id`,`number`,`question`,`difficulty`,`answer1`,`answer2`,`answer3`,`answer4`FROM`quiz_intrebari`WHERE`difficulty`="'.$cid.'"&&`number`="'.$fid.'"')->fetch_row();
echo$div[4].'Intrebare Quizz '.$div[5].$div[10].'Intrebarea '.$fid.': '.$row_quiz[2].$div[0].$div[1].'<a href="/raspuns-quizz/categorie/'.$row_quiz[3].'/v/'.$row_quiz[1].'/p/'.$row_quiz[0].'/tip/a">A. '.$row_quiz[4].'</a>'.$div[0].$div[1].'<a href="/raspuns-quizz/categorie/'.$row_quiz[3].'/v/'.$row_quiz[1].'/p/'.$row_quiz[0].'/tip/b">B. '.$row_quiz[5].'</a>'.$div[0].$div[1].'<a href="/raspuns-quizz/categorie/'.$row_quiz[3].'/v/'.$row_quiz[1].'/p/'.$row_quiz[0].'/tip/c">C. '.$row_quiz[6].'</a>'.$div[0].$div[1].'<a href="/raspuns-quizz/categorie/'.$row_quiz[3].'/v/'.$row_quiz[1].'/p/'.$row_quiz[0].'/tip/d">D. '.$row_quiz[7].'</a>'.$div[0];
require'f_jos.php';