1
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, as I do to list in the order of editing even if it is the same day?
Example:
I have the records:
ID - Update
101 - 15.03.2016
159 - 15.03.2016
243 - 15.03.2016
Only the last one edited was ID 159 and he’s third on the list, I need him to come first.
I’m waiting for help!
How are you registering the exact order of the issue?
– Bacco
You are only recording the date, or date and time?
– Rubico
ORDER BY ueditado DESC
– Guilherme Lautert