|
I recommend Stephen's suggestion, however, you could add a little more "randomness" to it by using a multi-dimensional array thereby giving you a few options for each day, which means, the user would see different messages on the same day. For example:
$message[1][1] = "First option for day 1";
$message[1][2] = "Second option for day 1";
$message[1][3] = "Third option for day 1";
$message[2][1] = "First option for day 2";
$message[2][2] = "Second option for day 2";
$message[2][3] = "Third option for day 2";
$date = date("d");
echo $message[$date][Math.floor(Math.random()*3)]
NOTE: I hardcoded the "3" in the random function to match the number of options you have for each day. Also, make sure that each day has the same number of options.
__________________
Mot
|