Hi, I’m completely new to php. I’m trying to run little pieces of html depending on which week of the year we currently are on but something is not working. For some reason always show the first option and ignores everything else. Anyone can help me figure out what I’m doing wrong. Again, I’m VERY new at php. This is what I have:
[b]$curweek = date(“W”);
if ($curweek == 07 || 21 || 35 || 49) {
echo '<p>html 1</p>';
}
elseif ($curweek == 08 || 22 || 36 || 50) {
echo '<p>html 2</p>';
}
elseif ($curweek == 09 || 23 || 37 || 51) {
echo '<p>html 3</p>';
}
[/b]
and so on…
It always shows the “html 1” regardless of the week we are on.