This commit is contained in:
Igor Barkov (iwork) 2020-06-23 16:37:25 +03:00
parent 50ab374d3a
commit cac207620d

View File

@ -28,7 +28,7 @@ function show_messages()
SELECT SELECT
`msg`, `msg`,
`msgdate`, `msgdate`,
(SELECT `login` FROM `users` WHERE `users`.`id` = `uid`) AS `from`, (SELECT `login` FROM `users` WHERE `users`.`id` = `user_id`) AS `from`,
`type` `type`
FROM `chat` ORDER BY `id` LIMIT 50'); FROM `chat` ORDER BY `id` LIMIT 50');
while ($message = $chat->fetch_assoc()) { while ($message = $chat->fetch_assoc()) {