Tyvm Ash..
When Eddy comes on i'll tell him and he can crack it lol. +rep
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
}
?>
EDTALKING
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
}
?>
Thanks! +rep if i can.
Edit: DAM AND BLAST! Need to spread! Sorry!
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/edneely/public_html/egg/egg.php on line 3You 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
}
?>
EDTALKING
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
}
?>
EDTALKING
Want to hide these adverts? Register an account for free!