Hi Mark,
You could do something like this:
<?php
$event = array(
"02may" => '<img src="egg.gif">',
"25dec" => '<img src="xmas.gif">',
);
$today = strtolower(date('dM'));
foreach ($event as $daycode => $image) {
if ($today == $daycode) {
echo "<div class='center'>$image</div>";
}
}
?>
You'll have to modify it slightly, if you want a default image.
Bob E.
----- Original Message -----
From: "Mark Mckee" <[EMAIL PROTECTED]>
> I have had a search through google and the usual php sites and forums
> over the last few days. I am looking for info to make a script that will
> display a different logo on a pre-determined date and time, ie.
> christmas, easter and new year etc.
>
> any suggestions?
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/