prepare("SELECT * FROM residents WHERE user_id = ?"); $stmt->execute([$_SESSION['user_id']]); $resident = $stmt->fetch(PDO::FETCH_ASSOC); // If no resident profile is linked to this user account, show a message. if (!$resident) { $no_profile_message = "Your profile is not yet linked. Please contact support."; } } catch (PDOException $e) { $error_message = "Error fetching your data."; } ?>
Name:
Program:
Status:
Last Check-in: