Tyvm Ash :)..
When Eddy comes on i'll tell him and he can crack it lol. +rep
Printable View
Tyvm Ash :)..
When Eddy comes on i'll tell him and he can crack it lol. +rep
Just upload 2 separate images
1 for easter sunday and one for the days upto then
If its Easter Sunday, or after it shows the image of the egg. Just drompo's code btw.PHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis => "Sunday, April 8, 2007") {
echo "<img src=\"image.gif\">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"image.gif\">"; //Image that will appear before easter Sunday
}
?>
C'est une problemePHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis => "Sunday, April 8, 2007") {
echo "<img src=\"me+egg.png">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"egg.gif">"; //Image that will appear before easter Sunday
}
?>
You were missing the backslash before the quotes on the 2nd imagePHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis => "Sunday, April 8, 2007") {
echo "<img src=\"me+egg.png\">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"egg.gif\">"; //Image that will appear before easter Sunday
}
?>
PHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis > "Sunday, April 8, 2007") {
echo "<img src=\"me+egg.png\">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"egg.gif\">"; //Image that will appear before easter Sunday
}
?>
that shows the eggPHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis > "Sunday, April 8, 2007") {
echo "<img src=\"me+egg.png\">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"egg.gif\">"; //Image that will appear before easter Sunday
}
?>
but when i change to show the other pic today
It wont workPHP Code:<?php
$todayis = date("l, F j, Y") ;
if($todayis > "Friday, April 6, 2007") {
echo "<img src=\"me+egg.png\">"; //Image that appears on Easter Sunday
} else {
echo "<img src=\"egg.gif\">"; //Image that will appear before easter Sunday
}
?>