phpmady Posted May 30, 2010 Share Posted May 30, 2010 Hi, How to select the past dates in the table thanks Quote Link to comment https://forums.phpfreaks.com/topic/203368-using-dates/ Share on other sites More sharing options...
-Karl- Posted May 30, 2010 Share Posted May 30, 2010 Very vague question, what exactly are you trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/203368-using-dates/#findComment-1065416 Share on other sites More sharing options...
jcbones Posted May 30, 2010 Share Posted May 30, 2010 $sql = "SELECT * FROM `table` WHERE `date` < CURDATE()"; Quote Link to comment https://forums.phpfreaks.com/topic/203368-using-dates/#findComment-1065423 Share on other sites More sharing options...
phpmady Posted May 31, 2010 Author Share Posted May 31, 2010 $sql = "SELECT * FROM `table` WHERE `date` < CURDATE()"; thanks, this is what i expect Quote Link to comment https://forums.phpfreaks.com/topic/203368-using-dates/#findComment-1065675 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.