From c47eabf29d0c315ad5bf7e483bfd24339c0542a7 Mon Sep 17 00:00:00 2001 From: nolanwhy <69528856+nolanwhy@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:33:20 +0100 Subject: [PATCH] Create User.php --- User.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 User.php diff --git a/User.php b/User.php new file mode 100644 index 0000000..bcc0313 --- /dev/null +++ b/User.php @@ -0,0 +1,43 @@ + + + +
+prepare("SELECT * FROM users WHERE id = :id"); +$q->bindParam(':id',$id,PDO::PARAM_INT); +$q->execute(); +$requestUser = $q->fetch(); +if(!$requestUser) { + die("go fuck yourself (no id"); // todo: redirect to 404 +} + +$getitstarted = new PartyStarter; +$getitstarted->header(); +?> + +thats all
+ +