|
Posted by Jarin on 10/21/05 06:43
You're going to want to look at the date() function and pick out the month
ranges you want, then assign a logo to a range (that could be stored in an
array, then use in_array() to check?). After that it should be a simple
matter of booleans to pick up the right logo.
If you want to use integers.. it would probably be easiest. Here's a
snippet..
$date = date('m'); Returns current month in number format
if ($date == "01") Checks to see if the month is January, note the 0
{
$logo = "january.jpg";
}
Quite simple in fact, but it can get simpler.
Hope this helps.
For reference: http://us3.php.net/manual/en/function.date.php
"Morrrrrrten" <rasshψletaud@noeavdetsomlukterhelthit.no> wrote in message
news:43577a32$1@news.wineasy.se...
>
> I want to create a a php code so my logo can change after seasons.
> Is there any script somewhere out there that does that. Or maybe something
> similarity so i can modify it?
>
> Thanks :-)
> __________________
> Best regards from
> MortenM
>
Navigation:
[Reply to this message]
|