I'm making a login system and I'm trying to make it once the user is logged in it will display the users username or first name. I figured out how to display the ID of the user but I want the username (uid is how I have it setup) or first name (first is how I have it set up).
<?php
if (isset($_SESSION['id'])) {
echo $_SESSION['id'];
echo "<div class='welcome_login'><h1>Welcome! Thanks for logging in!!</h1></div>";
} else {
echo "<div class='intro_page'><h1>You must login or signup!</h1></div>";
}
?>