You are not logged in!!!"; } else { echo "
You may make changes to your user profile below if you wish. Updates will take effect immediately on pressing \"Save\".
"; $query = "SELECT users.id, users.password, users.created, users.username, users.firstname, users.lastname, users.email, usertypes.typename AS usertype FROM users, usertypes WHERE users.id = :id"; $stmt = $sql->prepare($query); $stmt->execute(array(':id' => $_SESSION['user_id'])); $user = $stmt->fetchObject(); echo ""; } //********** END CONTENT **********// require_once($yaptc_inc . "footer.inc.php"); ?>