„threadr/boards/thread.php“ ändern

master
Jakob 2020-03-04 10:44:21 +01:00
parent 164730d5e9
commit 7de4ecac1e
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ $navbar="boards";
$error = false;
$error_message = "";
if (!$error) {
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
$statement->execute();
$result = $statement->fetchAll();
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id");
$statement->execute(array("id"=>$_GET['id']));
$result = $statement->fetch();
echo $result;
}
if (!$result) {