Jump to content

[SOLVED] close after date.


grlayouts

Recommended Posts

this might work

<?php
$openDate = 20071201;
$closeDate = 20071225;
$todaysDate = date(Ymd);
if($closeDate<$todaysDate){
die("PAGE IS CLOSED");
}elseif($openDate<$todaysDate){
(some kind of refresh to the page you want it to go to.)

}
?>

 

at least i think that will work. Dunno hope it helps

i'm taking about

<?php
$openDate = 20071201;
$closeDate = 20071225;
$todaysDate = date(Ymd);
if($closeDate<$todaysDate){
die("PAGE IS CLOSED");
}elseif($openDate<$todaysDate){
(some kind of refresh to the page you want it to go to.)

}
?>

open and close dates have years..

???

 

or are we taking about the one above that i said, but didn't work? lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.