Dokumenteninformation
Verfasst: Di 23. Mär 2004, 12:28
Ich habe immer noch Probleme mit der Darstellung der Dokumenteninformation: Author, Datum und Uhrzeit.
Problem ist das die Uhrzeit nie stimmt.
Ich habe die Artikel als Admin eingetragen...
Hat jemand eine Idee????
Gruß Roman
Problem ist das die Uhrzeit nie stimmt.
Ich habe die Artikel als Admin eingetragen...
Hat jemand eine Idee????
Gruß Roman
Code: Alles auswählen
<?php
$query = "SELECT B.author AS author,
B.lastmodified AS lastmodified,
C.realname AS realname
FROM
".$cfg["tab"]["art_lang"]." AS A,
".$cfg["tab"]["content"]." AS B,
".$cfg["tab"]["phplib_auth_user_md5"]." AS C
WHERE
A.idart = '$idart' AND
B.idartlang = A.idartlang AND
C.username = B.author
ORDER BY
B.lastmodified DESC";
$db->query($query);
$db->next_record();
$author = $db->f("author"); // loginname
$realname = $db->f("realname"); // realname
$lastmodified = strtotime($db->f("lastmodified"));
$lastmodified = date("d.m.Y h:m",$lastmodified);
echo " (".$lastmodified.")";
?>