I
I
ilysion_in_life2018-06-11 14:37:58
PHP
ilysion_in_life, 2018-06-11 14:37:58

How to display records by day?

Hello, can you suggest a solution to this problem? I made an example of displaying records from the database, and I need to display them in the same way as on the layout prntscr.com/jtk5ak , i.e. display them by day

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shade, 2018-06-21
@shadek

Sort by days in SQL query, when outputting in code/template set DATE variable and iterate over records.
If DATE is different from DATE_IN_RECORD, then output DATE_IN_RECORD and set DATE to DATE_IN_RECORD.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question