E
E
Evgeny Zhukov2016-10-16 13:30:47
CMS
Evgeny Zhukov, 2016-10-16 13:30:47

Output 10 news for the next dates (DLE)?

Good afternoon, I created a site on DLE, the subject of the release date of films. You need to organize the output of the next releases, for example, a block with 10 nearest dates. Dates are taken from the date of publication, the date is set for the future. The system organizes the display of 5 latest news, but with future ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Orlov, 2016-10-16
@QbicART

In the same way as with the latest news, only you sort the date from the current one, an example in SQL

SELECT * FROM table WHERE publish_date >= CURDATE() ORDER BY publish_date ASC LIMIT 10

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question