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