--- Mark Mckee <[EMAIL PROTECTED]> wrote:

> hi all
> 
> 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.
> 
> so far all i have managed to find is that it is
> possible to do.
> 
> any suggestions?
> 
> thanks in advance
> 
> mark..
> 

Shouldn't be hard:

switch (date('m-d')){
  case "12-25": //Christmas
      $image = "<img src='christmas.gif' />";
  break;
  case "01-01": //New years
      $image = "<img src='newyears.gif' />";
  break;
  ...
  default:
      $image = "<img src='default.gif' />";
  break;
}

And so on. Then, just <?php echo $image; ?> wherever
the logo goes into the page.

HTH,
-Nick


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/
 



Reply via email to