Чат на коленке
This commit is contained in:
parent
ca02c1ca30
commit
458f182cef
3
chat.php
3
chat.php
@ -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'];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user