I have a system that uses dates for logging and I separate the date by an arrays-formed explode and register them in a database, but when I do the query it looks for them in order, the order stumbles.
Following code examples - >
<?php
$listar = new USER();
$stmt = $listar->runQuery("SELECT * FROM horario ORDER BY dia,mes,ano DESC LIMIT 5");
$stmt->execute();
$Row=$stmt->fetchAll(PDO::FETCH_ASSOC);
Recent Dates: 11/8/2018
As you can see, you're not picking up the records as you should, please, I need your help!