Answer the question
In order to leave comments, you need to log in
How to display new elements from the bottom in Bitrix Highloadblock?
There are 10 items in the highload block. You need to output only 5 of them in the following order:
6
7
8
9
10
I.e. so that all new elements are at the bottom with a limit of 5, as messages are displayed in the chat. Please tell me how to do it.
If I do this:
$rsData = $entityDataClass::getList([
"select" => [
"ID",
],
"order" => ["ID" => "DESC"],
"limit" => 5
]);
while ($row = $rsData->Fetch())
{
echo $row['ID'];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question