Chat output
This commit is contained in:
parent
16704acba7
commit
ccd9bbc391
2
chat.php
2
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."<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>";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user