From 9afaeeaf218cbc6cfb55f7c58137d170a9d307e2 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 24 Feb 2020 09:19:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ethreadr/profile/index.php=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- threadr/profile/index.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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']; +?> + + ThreadR - Profile @@ -30,7 +42,8 @@
\ No newline at end of file