forked from root/threadr.lostcave.ddnss.de
Merge branch 'master' of https://lostcave.ddnss.de/git/root/web-deployment
commit
1afc303f09
|
@ -3,21 +3,21 @@ $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 = $pdo->prepare("SELECT * FROM posts WHERE board_id='$id' ORDER BY post_time asc");
|
||||
$statement->execute();
|
||||
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 "<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>"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue