This commit is contained in:
Igor Barkov (iwork) 2020-06-23 16:37:25 +03:00
parent 50ab374d3a
commit cac207620d
1 changed files with 1 additions and 1 deletions

View File

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