diff --git a/threadr/profile/redirect.php b/threadr/profile/redirect.php new file mode 100644 index 0000000..59370bd --- /dev/null +++ b/threadr/profile/redirect.php @@ -0,0 +1,37 @@ +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']; + +$navbar = "profile"; +?> + + + +
+