c-o-d-e Posted December 14, 2009 Share Posted December 14, 2009 I have christmas lights, and snow storms.. from a link I found via google. How would I activate the christmas lights and snow storms in december. If it's not december it wouldn't display them. eg: If(December){ Do affects; } I'm not sure how I'd get it to recognise the month - December. Any help? Thanks. Link to comment https://forums.phpfreaks.com/topic/185112-automatic-december-affects/ Share on other sites More sharing options...
mattal999 Posted December 14, 2009 Share Posted December 14, 2009 $month = date("F"); // F is the key for Full Month Name if($month == "December") { echo "<script type=\"text/javascript\" src=\"snowscript.js\"></script>"; // Echo the snow script et cetera } Link to comment https://forums.phpfreaks.com/topic/185112-automatic-december-affects/#findComment-977143 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.