Chat output

This commit is contained in:
lopar 2018-03-02 22:48:23 +02:00
parent 16704acba7
commit ccd9bbc391

View File

@ -23,7 +23,7 @@ while ($message = $chat->fetch_assoc()) {
$d = new DateTime($message['msgdate']);
$m = htmlspecialchars($message['msg']);
// echo $d->format('H:i').": " . $m."<br>";
sprintf('$s [%s]: $s <br>', $d->format('H:i'),$message['from'],$m);
echo sprintf('$s [%s]: $s', $d->format('H:i'),$message['from'],$m)." <br>";
}