Pauls74462 Posted July 14, 2009 Report Share Posted July 14, 2009 (edited) I need code to randomely post a different movie based in the day of the week. 1=Sunday2=MondayectPaul Edited July 14, 2009 by Pauls74462 Link to comment Share on other sites More sharing options...
justsomeguy Posted July 14, 2009 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now