From 627b069a676a10ea28b19e0954d1d13194ecc5c3 Mon Sep 17 00:00:00 2001 From: chonk Date: Wed, 19 Feb 2020 22:16:27 +0100 Subject: [PATCH] added page for listing boards --- threadr/boards/index.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 threadr/boards/index.php diff --git a/threadr/boards/index.php b/threadr/boards/index.php new file mode 100644 index 0000000..6a530e0 --- /dev/null +++ b/threadr/boards/index.php @@ -0,0 +1,35 @@ + + + + ThreadR Boards + + + +
+
+ prepare("SELECT name FROM boards"); + $statement->execute(); + + echo "
    " + foreach($statement->fetchAll() as $ROW) { + echo " +
  • $ROW[name]
  • "; + } + echo "
" + } + catch(PDOException $Exception) { + $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; + } + + $pdo = null; + ?> +
+
+ +