Чат на коленке

This commit is contained in:
lopar 2018-03-02 01:44:06 +02:00
parent ca02c1ca30
commit 458f182cef

View File

@ -15,7 +15,8 @@ include_once "functions.php";
$chat = db::c()->query('SELECT * FROM `chat` ORDER BY `id` DESC LIMIT 50');
while ($message = $chat->fetch_assoc()) {
echo $message['msgdate'].": " . $message['msg'];
$d = new DateTime($message['msgdate']);
echo $d->format('H:i').": " . $message['msg'];
}