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