From ccd9bbc39199b9978c363516096dcc091e6c353d Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 2 Mar 2018 22:48:23 +0200 Subject: [PATCH] Chat output --- chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.php b/chat.php index c4f0b2d..c8f7bb4 100644 --- a/chat.php +++ b/chat.php @@ -23,7 +23,7 @@ while ($message = $chat->fetch_assoc()) { $d = new DateTime($message['msgdate']); $m = htmlspecialchars($message['msg']); // echo $d->format('H:i').": " . $m."
"; - sprintf('$s [%s]: $s
', $d->format('H:i'),$message['from'],$m); + echo sprintf('$s [%s]: $s', $d->format('H:i'),$message['from'],$m)."
"; }