display text from date to date
Posted: Wed May 25, 2005 8:05 pm
Hi 
this is my first post here.. seems a nice forum
I go straight to my problem: I'm trying to do a script that lets me display different texts in different days.. this is not very difficult with this kind of code:
The problem is that after the date specified the file is no more included.. how can I resolve this? For example, how can I display the same file (alfa.html) between 26 may and 29 may? Any ideas?
Thanks in advance.
this is my first post here.. seems a nice forum
I go straight to my problem: I'm trying to do a script that lets me display different texts in different days.. this is not very difficult with this kind of code:
Code: Select all
$data = date("d.m.Y");
// files to include
if ($data=="26.05.2005") { include "alfa.html"; }
if ($data=="29.05.2005") { include "beta.html"; }
if ($data=="01.06.2005") { include "gamma.html"; }
if ($data=="05.06.2005") { include "omega.html"; }Thanks in advance.