From 6d681597272c3b7003f3694be7fd1df1d15792e7 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 6 Mar 2020 10:27:57 +0100 Subject: [PATCH] added button for posting --- threadr/boards/thread.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index b7eaa71..18e8182 100644 --- a/threadr/boards/thread.php +++ b/threadr/boards/thread.php @@ -3,6 +3,7 @@ session_start(); %NO_CHEAP_SESSION_STEALING% %PLEAZE_NO_CACHE% $navbar="boards"; +$id=$_GET['id']; ?> @@ -23,7 +24,7 @@ $navbar="boards"; $error_message = ""; if (!$error) { $statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id"); - $statement->execute(array("id"=>$_GET['id'])); + $statement->execute(array("id"=>$id)); $result = $statement->fetch(); echo $result['name']; } @@ -34,8 +35,10 @@ $navbar="boards";
-
- + "; + ?> +