diff --git a/threadr/boards/index.php b/threadr/boards/index.php
index bb46dfa..340eaf2 100644
--- a/threadr/boards/index.php
+++ b/threadr/boards/index.php
@@ -18,27 +18,26 @@ $navbar="boards";
ThreadR Boards
-
-
-
+
+
+ prepare("SELECT * FROM boards");
$statement->execute();
-
foreach($statement->fetchAll() as $ROW) {
- echo "- $ROW[name]
";
+ echo "- $ROW[name]
";
}
- }
-
- if (!$result) {
+ }
+ if (!$result) {
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
- }
- ?>
-
+ }
+ ?>
+
+