forked from root/threadr.lostcave.ddnss.de
„threadr/boards/thread.php“ ändern
parent
164730d5e9
commit
7de4ecac1e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue