master
Jakob 2020-03-08 15:22:08 +01:00
parent f64f00685a
commit c2d4290212
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w
$error = false;
$error_message = "";
if (!$error) {
$statement = $pdo->prepare("SELECT * FROM posts WHERE board_id='$id' ORDER BY post_time asc");
$statement->execute();
$statement = $pdo->prepare("SELECT * FROM posts WHERE board_id=:id ORDER BY post_time asc");
$statement->execute(array("id"=>$id));
foreach($statement->fetchAll() as $ROW) {
echo "<section>"
echo "<h1>$ROW[id]</h1>"