diff --git a/threadr/boards/index.php b/threadr/boards/index.php index 6a530e0..9fd7824 100644 --- a/threadr/boards/index.php +++ b/threadr/boards/index.php @@ -5,31 +5,27 @@ -
-
- prepare("SELECT name FROM boards"); - $statement->execute(); + $statement = $pdo->prepare("SELECT name FROM boards"); + $statement->execute(); - echo "" - } - catch(PDOException $Exception) { - $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; - } + echo "" + } + catch(PDOException $Exception) { + $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; + } - $pdo = null; - ?> -
-
+ $pdo = null; + ?>