Add timestamps to images.

This commit is contained in:
2023-12-31 09:35:34 +01:00
parent 66af0a2bb7
commit 4da5fc3f9c
11 changed files with 28 additions and 17 deletions

View File

@@ -3,10 +3,11 @@
<?php
$sql1 = 'SELECT * FROM gb ORDER BY ID';
$result1 = $db->query($sql1);
$ts = time();
while ($nt1 = $result1->fetch_assoc()) {
$datum = date("d.m.Y", strtotime($nt1['Datum']));
echo "<img class=\"left\" src=\"img/umgebung/gb/" . $nt1['ID'] . ".jpg\" />\n";
echo "<img class=\"left\" src=\"img/umgebung/gb/" . $nt1['ID'] . ".jpg?ts=" . $ts . "\" />\n";
echo "<h3>" . $nt1['Autor'] . " schrieb am " . $datum . ":</h3>\n";
echo "<p>" . nl2br($nt1['Text']) . "</p>\n";
echo "<br class=\"clear\" />\n";