Чат на коленке
This commit is contained in:
parent
458f182cef
commit
7ccf4939e3
2
chat.php
2
chat.php
@ -16,7 +16,7 @@ $chat = db::c()->query('SELECT * FROM `chat` ORDER BY `id` DESC LIMIT 50');
|
|||||||
|
|
||||||
while ($message = $chat->fetch_assoc()) {
|
while ($message = $chat->fetch_assoc()) {
|
||||||
$d = new DateTime($message['msgdate']);
|
$d = new DateTime($message['msgdate']);
|
||||||
echo $d->format('H:i').": " . $message['msg'];
|
echo $d->format('H:i').": " . $message['msg']."<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user