From 0ababf4ec41f6d70f764229ada7fa83c6374ea6e Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 4 Mar 2020 10:45:05 +0100 Subject: [PATCH] final fix? --- threadr/boards/thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index 5572294..bf4ebd5 100644 --- a/threadr/boards/thread.php +++ b/threadr/boards/thread.php @@ -25,7 +25,7 @@ $navbar="boards"; $statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id"); $statement->execute(array("id"=>$_GET['id'])); $result = $statement->fetch(); - echo $result; + echo $result['name']; } if (!$result) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];