diff --git a/threadr/userhome/index.php b/threadr/userhome/index.php index a3b83e6..a6d98d6 100644 --- a/threadr/userhome/index.php +++ b/threadr/userhome/index.php @@ -1,3 +1,25 @@ +prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table +$result = $statement->execute(array('user_id' => $_SESSION['user_id'])); +$dbentry = $statement->fetch(); +$username = $dbentry['name']; +?> +