PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$initialdate = "02102006141401";
$threedays = "03000000000000"; //for day three
$present_time = date('dmYHis');
if($present_time >= ($initialdate + $threedays)) {
$welcomeImg = "";
}
else {
$welcomeImg = "/images/welcome.gif"; //image displayed within three days
}
This worked only if it falls within the month the site was uploaded but if it happens to be in the next month or the other year it never works as planned.
So I will like someone to help me out on this script of a diffrent method of doing it.