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();Details:
+Type:
+Block:
You have not been allocated a room yet.