master
Jakob 2020-03-04 10:32:09 +01:00
parent 760cfae047
commit deb79c01b6
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ $navbar="boards";
if (!$error) { if (!$error) {
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']"); $statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
$statement->execute(); $statement->execute();
$statement->fetchAll() as $ROW; $statement->fetchAll()[0]['name']";
echo "$ROW[name]";
} }
if (!$result) { if (!$result) {
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];