Pauls74462 Posted July 14, 2009 Share Posted July 14, 2009 I need code to randomely post a different movie based in the day of the week. 1=Sunday2=MondayectPaul Link to comment Share on other sites More sharing options...
justsomeguy Posted July 14, 2009 Share Posted July 14, 2009 You can use date('N') to return a number for the current day, 1=Monday, 7=Sunday. You can use that to figure out which movie to load.http://www.php.net/manual/en/function.date.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.