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"; Quote 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"; Quote 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"); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.