From 7eb2cea47aa99f7503fc5d17c77a3af45bbb03c9 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 21 Feb 2020 06:54:51 +0100 Subject: [PATCH] login should work now --- threadr/userhome/index.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) 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']; +?> +