shadiadiph Posted March 20, 2009 Share Posted March 20, 2009 Hi i am trying to select articles from the database where the date has a higher value than todays date? $todaysdate = date("Y:m:d"); $sql="select * from tbldetails where enddate= '>$todaysdate' order by dtadded desc"; Link to comment https://forums.phpfreaks.com/topic/150292-solved-problem-selecting-a-date-greater-than-todays/ Share on other sites More sharing options...
Festy Posted March 20, 2009 Share Posted March 20, 2009 $todaysdate = date("Y:m:d"); $sql="select * from tbldetails where enddate > $todaysdate order by dtadded desc"; Link to comment https://forums.phpfreaks.com/topic/150292-solved-problem-selecting-a-date-greater-than-todays/#findComment-789271 Share on other sites More sharing options...
shadiadiph Posted March 20, 2009 Author Share Posted March 20, 2009 awesome thanks but i had to change the date to $todaysdate = date("Y-m-d"); Link to comment https://forums.phpfreaks.com/topic/150292-solved-problem-selecting-a-date-greater-than-todays/#findComment-789310 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.