Chat output

This commit is contained in:
lopar 2018-03-02 22:49:03 +02:00
parent ccd9bbc391
commit c7b95f8a85

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>";
echo sprintf('$s [%s]: $s', $d->format('H:i'),$message['from'],$m)." <br>";
echo sprintf('%s [%s]: %s', $d->format('H:i'),$message['from'],$m)." <br>";
}