From deb79c01b65803bcd3be09794591d1e7fc50a277 Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 4 Mar 2020 10:32:09 +0100 Subject: [PATCH] fix --- threadr/boards/thread.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index 6d705ce..d13ad2c 100644 --- a/threadr/boards/thread.php +++ b/threadr/boards/thread.php @@ -24,8 +24,7 @@ $navbar="boards"; if (!$error) { $statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']"); $statement->execute(); - $statement->fetchAll() as $ROW; - echo "$ROW[name]"; + $statement->fetchAll()[0]['name']"; } if (!$result) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];