From c7b95f8a85cb0a62eb6e97c7d815f303d66a4ae4 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 2 Mar 2018 22:49:03 +0200 Subject: [PATCH] Chat output --- chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.php b/chat.php index c8f7bb4..0eae03a 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."
"; - echo sprintf('$s [%s]: $s', $d->format('H:i'),$message['from'],$m)."
"; + echo sprintf('%s [%s]: %s', $d->format('H:i'),$message['from'],$m)."
"; }