prepare("SELECT name FROM boards"); $statement->execute(); echo "" } catch(PDOException $Exception) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; } $pdo = null; ?>