neerajmasih Posted April 18, 2013 Share Posted April 18, 2013 plz help me , i want the code for record According to date and time (2013/04/20 01:20:00 pm) Link to comment https://forums.phpfreaks.com/topic/277105-show-php-mysql-record-according-to-date/ Share on other sites More sharing options...
computermax2328 Posted April 18, 2013 Share Posted April 18, 2013 The current date and time or do you have date and time saved into a database somewhere? Link to comment https://forums.phpfreaks.com/topic/277105-show-php-mysql-record-according-to-date/#findComment-1425590 Share on other sites More sharing options...
Barand Posted April 18, 2013 Share Posted April 18, 2013 The code for the example you gave would be 2013-04-20 13:20:00 to store in the database table, column type DATETIME Link to comment https://forums.phpfreaks.com/topic/277105-show-php-mysql-record-according-to-date/#findComment-1425651 Share on other sites More sharing options...
EffakT Posted April 20, 2013 Share Posted April 20, 2013 What the above said, return it using "(YOUR SQL QUERY) ORDER BY (YOUR DATE ROW)". Replace brackets with your criteria. Link to comment https://forums.phpfreaks.com/topic/277105-show-php-mysql-record-according-to-date/#findComment-1425916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.