piznac Posted November 10, 2006 Share Posted November 10, 2006 Hello all,I need something like this: Every tuesday a link or image or something appears on page, then 3 days later it dissappears. Now I know how to echo the link or image and all that,.. but Im confused with the dates thing. Any insight would be great. Link to comment https://forums.phpfreaks.com/topic/26861-mktime-function-maybe/ Share on other sites More sharing options...
piznac Posted November 10, 2006 Author Share Posted November 10, 2006 the only thing I can think of is to take today to a gegorain date and then add 7 then if today equals this ...oh well Im confused Link to comment https://forums.phpfreaks.com/topic/26861-mktime-function-maybe/#findComment-122850 Share on other sites More sharing options...
Orio Posted November 10, 2006 Share Posted November 10, 2006 You need to show a link if the day is tuesday or friday or saturday or sunday?[code]<?php$today = date("w") + 1;if($today == 5 || $today == 6 || $today == 7 || $today == 1) echo "Link";?>[/code]Orio. Link to comment https://forums.phpfreaks.com/topic/26861-mktime-function-maybe/#findComment-122851 Share on other sites More sharing options...
piznac Posted November 10, 2006 Author Share Posted November 10, 2006 hey man thanks,.. any way I could get you to explain this. ok wait I see... thanks Link to comment https://forums.phpfreaks.com/topic/26861-mktime-function-maybe/#findComment-122858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.