"Prima ora
7:50 - 8:50", 2 => "Seconda ora
8:50 - 9:45", 3 => "Terza ora
9:55 - 10:50", 4 => "Quarta ora
10:50 - 11:45", 5 => "Quinta ora
11:55 - 12:50", 6 => "Sesta ora
12:50 - 13:50" ]; if (!isset($_GET['room'])) { header("Location: index.php"); exit; } $room = $conn->real_escape_string($_GET['room']); $res = $conn->query("SELECT DISTINCT room FROM subjects WHERE room = '$room' LIMIT 1"); if ($res->num_rows === 0) { // Aula non trovata header("Location: index.php"); exit; } ?> Orario <?php echo htmlspecialchars($room); ?>

Orario

$d"; ?> $hlabel){ echo ""; foreach($days as $d){ $q = $conn->query(" SELECT subjects.name AS subject_name, subjects.teacher, classes.name AS class_name FROM timetable LEFT JOIN subjects ON timetable.subject_id = subjects.id LEFT JOIN classes ON timetable.class_id = classes.id WHERE subjects.room='". $conn->real_escape_string($room) ."' AND timetable.day='$d' AND timetable.hour=$hnum "); if($row = $q->fetch_assoc()){ echo ""; } else { echo ""; } } echo ""; } ?>
$hlabel
{$row['subject_name']}
{$row['teacher']}
{$row['class_name']}

Copyright (C) 2025 EmmeV. - Released under GNU AGPL 3.0 License.