N
Nikki F
Guest
I hope this isn't too confusing, but is there a way with PHP to show one page if it's before a day, and show a different page after that day?
For example: I want my page to show the words January 12th before the 13th, and on the 13th, switch to saying February 4th. However, I would need this to continue going on and on with many more dates.
I was thinking an else..if statement would work, but I didn't know exactly how to word it.
I've got this much: (the show page a or b.php is the part I need help writing.)
<? if (time() <= strtotime('2008-01-14')) {
echo "(show page a.php)";
} else {
echo "(show page p.php)"; }
?>
Thanks for the help
I would use it as an include into the main index page.
For example: I want my page to show the words January 12th before the 13th, and on the 13th, switch to saying February 4th. However, I would need this to continue going on and on with many more dates.
I was thinking an else..if statement would work, but I didn't know exactly how to word it.
I've got this much: (the show page a or b.php is the part I need help writing.)
<? if (time() <= strtotime('2008-01-14')) {
echo "(show page a.php)";
} else {
echo "(show page p.php)"; }
?>
Thanks for the help

I would use it as an include into the main index page.
