prepare("SELECT * FROM users WHERE email = ?"); $stmt->bind_param("s", $user_email); echo"$user_email"; $stmt->execute(); $result = $stmt->get_result(); $user = $result->fetch_assoc(); if (!$user) { echo "User not found."; exit; } ?>
You are logged in as: = htmlspecialchars($user['role']) ?>
= htmlspecialchars($user['email']) ?> | |
First Name | = htmlspecialchars($user['first_name']) ?> |
Last Name | = htmlspecialchars($user['last_name']) ?> |
Phone | = htmlspecialchars($user['phone']) ?> |
Role | = htmlspecialchars($user['role']) ?> |
Account Created | = htmlspecialchars($user['created_at']) ?> |