Авторизация
 Регистрация   Войти   Забыли пароль? 

Как сделать в PHP-Fusion, чтобы показывалась страница с последними комментами, а не первыми

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-Fusion Core code / Как сделать в PHP-Fusion, чтобы показывалась страница с последними комментами, а не первыми


 Russian

ASC на DESC меняет порядок выборки по дате.

How to make in PHP-Fusion sure that when you see a page with the latest comments, not the first ones

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-Fusion Core code / How to make in PHP-Fusion sure that when you see a page with the latest comments, not the first ones


 English

ASC  to DESC  changes the sampling order by date.

PHP

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
includes/comments_include.php
line 81-87

EN: replace
RU: заменить

$result = dbquery(
"SELECT tcm.comment_id, tcm.comment_name, tcm.comment_message, tcm.comment_datestamp, tcu.user_name, tcu.user_status
FROM ".DB_COMMENTS." tcm
LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id
WHERE comment_item_id='$cid' AND comment_type='$ctype' AND comment_hidden='0'
ORDER BY comment_datestamp ASC LIMIT ".$_GET['c_start'].",10"
);



EN: on
RU: на

$result = dbquery(
"SELECT tcm.comment_id, tcm.comment_name, tcm.comment_message, tcm.comment_datestamp, tcu.user_name, tcu.user_status
FROM ".DB_COMMENTS." tcm
LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id
WHERE comment_item_id='$cid' AND comment_type='$ctype' AND comment_hidden='0'
ORDER BY comment_datestamp DESC LIMIT ".$_GET['c_start'].",10"
);

Добавить комментарий

Добавить комментарий
Пожалуйста, залогиньтесь для добавления комментария.
Рейтинги
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/pagex.php?id=23">Как сделать в PHP-Fusion, чтобы показывалась страница с последними комментами, а не первыми</a>


[url=https://php-fusion.vveb.ws/pagex.php?id=23]Как сделать в PHP-Fusion, чтобы показывалась страница с последними комментами, а не первыми[/url]

Language: Default
 
Код для PHP-Fusion