Topic: PHP display only future dates
Hello,
I know it's possible to display records ordered by date, but what if I want to display only future dates counting from the present day? PHP should first calculate the present date and then display dates from there. How do I do that? With a conditional statement? is there a function for that?
Example:
I have these records stored in my DB:
record1 2009/10/02
record2 2009/10/05
record3 2009/10/08
record4 2009/10/18
record5 2009/11/04
record6 2009/11/10
record7 2009/12/07
If the present day is 2009/10/17 I just want to display:
record4 2009/10/18
record5 2009/11/04
record6 2009/11/10
record7 2009/12/07
but If the present day is 2009/11/01 I just want to display:
record5 2009/11/04
record6 2009/11/10
record7 2009/12/07
Any help will be appreciated,
Regards,
Eduardo
