From b1da1ceb6d6615860f262ddf6cd44649a06827c2 Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 2 Mar 2020 09:13:10 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ethreadr/boards/thread.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/boards/thread.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index 0221d21..32aff67 100644 --- a/threadr/boards/thread.php +++ b/threadr/boards/thread.php @@ -3,6 +3,7 @@ session_start(); %NO_CHEAP_SESSION_STEALING% $navbar="boards"; +$id = $_GET["id"] ?> @@ -16,7 +17,22 @@ $navbar="boards"; %NAVBAR%
-

ThreadR Boards

+

+ prepare("SELECT * FROM boards WHERE id=$id"); + $statement->execute(); + $statement->fetchAll() as $ROW + echo "$ROW[name]"; + } + if (!$result) { + $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; + } + ?> +