diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index 58da9bd..7fabf26 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=$_GET['id']"); $statement->execute(); $result = $statement->fetchAll(); - echo $result[0]['name']; + echo $result; } if (!$result) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];