0
Well what I intend initially is to do a while that shows me all the results of my column reserves. However I want to make a select that shows me the nearest days and then the nearest hours.
The name of my day column is "dialevant" and the name of my pick-up time is "horalevant", how can I make a select that shows me the nearest days and then the hours?
Thank you.
If dialevant will always store dates prior to or equal to the current date you can perform a SELECT in your table using "ORDER BY dialevant DESC, horalevant DESC" at the end of your query.
– Bruno Bermann
No, the dialevant, will only store future dates or current dates whose time has not yet passed the horalevant.
– Gonçalo
Can post the structure of your tables and how this bringing the data and how you want?
– Marco Souza