diff --git a/threadr/profile/index.php b/threadr/profile/index.php index e409976..34b2c4d 100644 --- a/threadr/profile/index.php +++ b/threadr/profile/index.php @@ -1,3 +1,15 @@ +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']; +?> + +