num_rows !== 1) { echo "Requested experience does not exist."; exit(); } // IF EXPERIENCE DOESN'T BELONG TO USER (WHO IS NOT AN ADMIN), EXIT if($_SESSION['dbUserData']['admin'] !== '1') { $queryCheckUser = "SELECT id FROM experience WHERE id = '$experienceID' AND id 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 experience."; exit(); } } // FETCH EXPERIENCE'S PROJECT ID $queryProject = "SELECT id_project FROM project_experience WHERE id_experience = '$experienceID';"; $resultProject = mysqli_query($connection, $queryProject); $rowProject = mysqli_fetch_assoc($resultProject); // FETCH NUMBER OF STUDENTS ENROLLED IN EXPERIENCE $queryTotalStudents = "SELECT * FROM student_participate_experience WHERE id_experience = '$experienceID'"; $resultTotalStudents = mysqli_query($connection, $queryTotalStudents); $studentCount = $resultTotalStudents->num_rows; include_once 'header.php'; ?>
Back Sign Out

Description:

Type:

Duration: week 1) echo "s"; ?>

Participants Enrolled:



Active Questionnaires


0): ?>

Questionnaire

Questions

It seems you still haven't added a questionnaire to this experience...





Active Moments

0): ?> strtotime('now')): ?> num_rows; ?>

Moment

Questions

Date

Answer Rate

Register students!
Still not sent

It seems you still haven't added any moments to this experience...





Active Milestones

0): ?>

Milestone

Date

It seems you still haven't added any milestones to this experience...