db fix
This commit is contained in:
parent
50ab374d3a
commit
cac207620d
2
chat.php
2
chat.php
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user