Activity Management
+This page will contain student activity information.
+diff --git a/activities.php b/activities.php index b27936c..60e59a8 100644 --- a/activities.php +++ b/activities.php @@ -1,110 +1,32 @@ exec($sql); -} catch (PDOException $e) { - die("ERROR: Could not connect. " . $e->getMessage()); +if (!isset($_SESSION['user_id'])) { + header('Location: login.php'); + exit(); } ?> -
+Activity log:
- query("SELECT a.id, u.username, a.action, a.created_at FROM activities a JOIN users u ON a.user_id = u.id ORDER BY a.created_at DESC"); - $activities = $stmt->fetchAll(PDO::FETCH_ASSOC); - ?> -| ID | -User | -Action | -Timestamp | -
|---|---|---|---|
| - | - | - | - |
This page will contain student activity information.
+