num_rows !== 1) { echo "Requested experience does not exist."; exit(); } // IF MOMENT DOESN'T BELONG TO USER (WHO IS NOT AN ADMIN), EXIT if($_SESSION['dbUserData']['admin'] !== '1') { $queryCheckUser = "SELECT id FROM subquestionnair WHERE id = '$momentID' AND id IN (SELECT id_subquestionnair FROM experience_subquestionnair WHERE id_experience IN (SELECT id_experience FROM researcher_experience WHERE id_researcher = '" . $_SESSION['dbUserData']['id_researcher'] . "'));"; if(mysqli_query($connection, $queryCheckUser)->num_rows === 0) { echo "You are not authorized to view this moment."; exit(); } } // EXTRACT & DISPLAY THE NUMBER OF QUESTIONS IN THE MOMENT $queryNumQuestions = "SELECT * FROM question WHERE id IN (SELECT id_question FROM subquestionnair_question WHERE id_subquestionnair = '$momentID');"; $resultNumQuestions = mysqli_query($connection, $queryNumQuestions); $numQuestions = $resultNumQuestions->num_rows; include_once 'header.php'; ?>
Back Sign Out

Moment

Title:

Description:

Due Date:

Amount of Questions:


0): ?>

#

Premise

It seems you haven't added any questions to this moment...