From a30c5e71e8f66d06a2d7c0d15dbeba0163822a8c Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 22 Oct 2025 12:05:20 +0000 Subject: [PATCH] 4.4 --- admin/allocations.php | 2 +- admin/edit_room.php | 2 +- admin/edit_student.php | 2 +- admin/rooms.php | 2 +- admin/students.php | 2 +- auth/login.php | 1 - auth/logout.php | 2 +- includes/header.php | 2 +- student/dashboard.php | 7 ++++--- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/admin/allocations.php b/admin/allocations.php index 0abb255..60f27d3 100644 --- a/admin/allocations.php +++ b/admin/allocations.php @@ -1,5 +1,5 @@ + diff --git a/student/dashboard.php b/student/dashboard.php index 1543f2a..cc242aa 100644 --- a/student/dashboard.php +++ b/student/dashboard.php @@ -8,7 +8,7 @@ if (!isset($_SESSION['id']) || $_SESSION['role'] !== 'Student') { } $pdo = db(); -$stmt = $pdo->prepare("SELECT r.room_number, r.details FROM Allocations a JOIN Rooms r ON a.room_id = r.id WHERE a.student_id = ?"); +$stmt = $pdo->prepare("SELECT r.room_no, r.type, r.block FROM Allocations a JOIN Rooms r ON a.room_id = r.id WHERE a.student_id = ?"); $stmt->execute([$_SESSION['id']]); $allocation = $stmt->fetch(); ?> @@ -23,8 +23,9 @@ $allocation = $stmt->fetch();
-
You are allocated to Room:
-

Details:

+
You are allocated to Room:
+

Type:

+

Block:

You have not been allocated a room yet.