" and '
parent
a2efbb6d41
commit
9f4bf5b0b0
|
@ -3,7 +3,6 @@ $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w
|
|||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo '<center><h2 class="beige">Public Boards</h2></center>';
|
||||
$statement = $pdo->prepare("SELECT * FROM posts WHERE board_id=$id ORDER BY post_time asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
|
@ -12,10 +11,10 @@ if (!$error) {
|
|||
echo " <article>"
|
||||
echo " <header>"
|
||||
echo " <div>"
|
||||
echo " <p class="beige">$ROW[user_id] <time datetime="$ROW[post_time]">$ROW[post_time]</time></p>"
|
||||
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 " <div class='postcontent'>"
|
||||
echo " <p>$ROW[content]</p>"
|
||||
echo " </div>"
|
||||
echo " </article>"
|
||||
|
|
Loading…
Reference in New Issue