if (empty($data)) { //score inserten in tabel score insertScore($gebruiker, $examenvraagid, $score); //score updaten in tabel resultaat } else { //score inserten in tabel score updateScore($gebruiker, $examenvraagid, $score); } } $check = checkIfExamResultExists($_SESSION['gebruiker_id'], $examen_id); if ($check) { //totaal score updaten in tabel resultaat insertScoreTabelResultaat($_SESSION['gebruiker_id'], $totaalscore, $examen_id, $puntenaftrek); } else { //totaal score updaten in tabel resultaat updateScoreTabelResultaat($_SESSION['gebruiker_id'], $totaalscore, $examen_id, $puntenaftrek); } } } } include ROOT_PATH . "includes/templates/header.php"; //als docent ingelogd is sidebar-docent anders sidebar-leerling if (checkRole($_SESSION['gebruiker_id']) == 2) { include ROOT_PATH . "includes/templates/sidebar-docent.php"; } else { include ROOT_PATH . "includes/templates/sidebar-leerling.php"; } ?> <!-- main --> <div class="col"> <!-- main header -->
if (empty($data)) { //score inserten in tabel score insertScore($gebruiker, $examenvraagid, $score); //score updaten in tabel resultaat } else { //score inserten in tabel score updateScore($gebruiker, $examenvraagid, $score); } } $check = checkIfExamResultExists($_SESSION['gebruiker_id'], $examen_id); if ($check) { //totaal score updaten in tabel resultaat insertScoreTabelResultaat($_SESSION['gebruiker_id'], $totaalscore, $examen_id); } else { //totaal score updaten in tabel resultaat updateScoreTabelResultaat($_SESSION['gebruiker_id'], $totaalscore, $examen_id); } } } } include ROOT_PATH . "includes/partials/message.html.php"; include ROOT_PATH . "includes/templates/header.php"; ?> <div class="wrapper"> <?php //als docent ingelogd is sidebar-docent anders sidebar-leerling if (checkRole($_SESSION['gebruiker_id']) == 2) { include ROOT_PATH . "includes/templates/sidebar-docent.php"; } else { include ROOT_PATH . "includes/templates/sidebar-leerling.php"; }