Chat output
This commit is contained in:
parent
ccd9bbc391
commit
c7b95f8a85
2
chat.php
2
chat.php
@ -23,7 +23,7 @@ while ($message = $chat->fetch_assoc()) {
|
|||||||
$d = new DateTime($message['msgdate']);
|
$d = new DateTime($message['msgdate']);
|
||||||
$m = htmlspecialchars($message['msg']);
|
$m = htmlspecialchars($message['msg']);
|
||||||
// echo $d->format('H:i').": " . $m."<br>";
|
// 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>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user