Jump to content

order by dato<dato


Azzyh

Recommended Posts

Hi.

I want to order the stuff that comes out of the query, by the closest dato matching and following.

 

So like if the datetime right now is:

21/21/08 3:15 pm

 

and theres a row with field "dato" that has 21/21/08 3:10 <- this should be the first on the top and then following.. hope you understand

 

i tried myself alittle:

$timenow = date('d/m/Y G:i:s');

ORDER BY dato < ($timenow)

 

but doesnt seem to be right

Link to comment
https://forums.phpfreaks.com/topic/188903-order-by-dato/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.