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]; + } + ?> +