Home > PHP > Php Code That Checks Date

Php Code That Checks Date

July 29th, 2009

I have a non CMS driven website on which my customer wants every few days an other bit of text showing. Because I can’t be available each time he want changes I would like to have a small piece of php that checks if the current date is between 2 given parameters which are the beginning and end date. When it is between the given dates the part of html is sown. When it is outsides it ignores the piece of html.

In one page I would like to enter a few of these date shown pieces of html so I can make changing weeks in front.

See attached html doc that makes more clear what I want


Php Code That Checks Date

Comments are closed.
Bear