I have the following SQL:
$dcadastroultimo = date("d.m.y");
$sqlidcidade = "select id, titulo, tipo from imoveis where cod = '$cliente' AND
ueditado <= '$dcadastroultimo' ORDER BY id ASC";
I need you to list the last edited records, but several are edited with the date of the same day, how do I list in the same editing order being same day?
Exceptions:
I have the records:
ID - Update
101 - 15.03.2016
159 - 15.03.2016
243 - 15.03.2016
Only the last edit was ID 159 and it's the third one on the list, so I need to get it first.
I look forward to helping you!