AM I THAT STUPID

master
Jakob 2020-03-08 15:23:34 +01:00
parent 36c276f682
commit d72da5ffef
1 changed files with 13 additions and 13 deletions

View File

@ -6,19 +6,19 @@ if (!$error) {
$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>"
echo "<article>"
echo "<header>"
echo "<div>"
echo "<p class='beige'>$ROW[user_id] <time datetime='$ROW[post_time]'>$ROW[post_time]</time></p>"
echo "</div>"
echo "</header>"
echo "<div class='postcontent'>"
echo "<p>$ROW[content]</p>"
echo "</div>"
echo "</article>"
echo "</section>"
echo "<section>";
echo "<h1>$ROW[id]</h1>";
echo "<article>";
echo "<header>";
echo "<div>";
echo "<p class='beige'>$ROW[user_id] <time datetime='$ROW[post_time]'>$ROW[post_time]</time></p>";
echo "</div>";
echo "</header>";
echo "<div class='postcontent'>";
echo "<p>$ROW[content]</p>";
echo "</div>";
echo "</article>";
echo "</section>";
}
}
if (!$result) {