diff --git a/threadr/boards/thread.php b/threadr/boards/thread.php index b7eaa71..18e8182 100644 --- a/threadr/boards/thread.php +++ b/threadr/boards/thread.php @@ -3,6 +3,7 @@ session_start(); %NO_CHEAP_SESSION_STEALING% %PLEAZE_NO_CACHE% $navbar="boards"; +$id=$_GET['id']; ?> @@ -23,7 +24,7 @@ $navbar="boards"; $error_message = ""; if (!$error) { $statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id"); - $statement->execute(array("id"=>$_GET['id'])); + $statement->execute(array("id"=>$id)); $result = $statement->fetch(); echo $result['name']; } @@ -34,8 +35,10 @@ $navbar="boards";
-
- + "; + ?> +