Posted by NC on 12/22/05 19:01
Dave Turner wrote:
>
> Id like to be able to add text to my site but have it only saying that
> for a couple of months. Is this easy to do?
Yes. There are many ways of doing it. One example:
$date = 'February 22, 2006';
if (time() < strtotime($date)) {
echo "This is the text that should appear before $date";
} else {
echo "This is the text that should appear after $date";
}
Cheers,
NC
Navigation:
[Reply to this message]
|