@@j4nk3y
Eine Schleife muss hier schon irgendwie rein...??
Ja. In der alternativen Syntax.
<?php if ($result = $db->query($get_messages)): ?>
<?php while ($row = $result->fetch_assoc()): ?>
<article>
<footer>
<time datetime="<?php echo date('c', $row['message_date']); ?>"><?php echo date('H:i:s', $row['message_date']); ?></time>
<span class="author"><?php echo htmlspecialchars($row['message_writer']); ?></span>
</footer>
<p class="message"><?php echo htmlspecialchars($row['message']); ?></p>
</article>
<?php endwhile; ?>
<?php endif; ?>
LLAP 🖖
PS: Kaputte Syntaxhighlighter sind kaputt.
--
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|