Holiday Message
These codes will let you output a message based on which month of the year it is. It’s great for monthly promotions that one may hold, as you can set them up at the beginning of the year, and not have to worry about it again.
To change the message, edit the message within quotes (” “). Make sure to escape any characters such as $, &, ” or \ if you’re using them, so that the browser knows they are part of the message and not the code. With this system, you can set simple text messages, linked images or even calls to javascript functions if you know how to.
This is the first part of the code. You need to make sure that the first set of codes is in the same file as the second set of codes. You can use this with PHP Includes, if you know how to. If you’re gathering a bunch of PHP functions in one part of your code, I recommend adding this there.
This part of the code you will need to put where you want the message to show up.