„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 = false;
$error_message = ""; $error_message = "";
if (!$error) { if (!$error) {
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']"); $statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id");
$statement->execute(); $statement->execute(array("id"=>$_GET['id']));
$result = $statement->fetchAll(); $result = $statement->fetch();
echo $result; echo $result;
} }
if (!$result) { if (!$result) {