Чат на коленке
This commit is contained in:
parent
7ccf4939e3
commit
837f62b026
2
chat.php
2
chat.php
@ -12,7 +12,7 @@ if ($_SESSION['uid'] == null) {
|
||||
include_once "config.php";
|
||||
include_once "functions.php";
|
||||
|
||||
$chat = db::c()->query('SELECT * FROM `chat` ORDER BY `id` DESC LIMIT 50');
|
||||
$chat = db::c()->query('SELECT * FROM `chat` ORDER BY `id` ASC LIMIT 50');
|
||||
|
||||
while ($message = $chat->fetch_assoc()) {
|
||||
$d = new DateTime($message['msgdate']);
|
||||
|
Loading…
Reference in New Issue
Block a user