num_rows !== 1) { echo "Requested questionnaire does not exist."; exit(); } // IF QUESTIONNAIRE DOESN'T BELONG TO USER (WHO IS NOT AN ADMIN), EXIT if($_SESSION['dbUserData']['admin'] !== '1') { $queryCheckUser = "SELECT id FROM questionnair WHERE id = '$questionnaireID' AND id IN (SELECT id_questionnair FROM experience_questionnair 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 questionnaire."; exit(); } } // EXTRACT & DISPLAY THE NUMBER OF QUESTIONS IN THE QUESTIONNAIRE $queryNumQuestions = "SELECT * FROM question WHERE id IN (SELECT id_question FROM questionnair_question WHERE id_questionnair = '$questionnaireID');"; $resultNumQuestions = mysqli_query($connection, $queryNumQuestions); $numQuestions = $resultNumQuestions->num_rows; include_once 'header.php'; ?>
Back Sign Out

Questionnaire

Title:

Description:

Amount of Questions:


0): ?>

#

Question

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