Greetings Dear! There is such a SQL query:
$sql = "SELECT * FROM visit WHERE dateTime BETWEEN '$dateStart' AND '$dateEnd' ORDER BY dateTime DESC"; This request makes a selection by date range, date in format 2016-10-11 00:41:08
I try with DESC and ASC, but the result is the same - the lines are sorted in ascending order, i.e. first the oldest records, and it is necessary that the most recent records by date and time be displayed at the beginning. Help please with the request, I can not find the correct answer. Thank you for attention!