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];