Ask about general coding issues or problems here.
3 posts • Page 1 of 1
Your best bet is to grab the system timestamp and then compare for each value. Try hotscripts.com to find a script that has already been written.
JCCorner.com - Online marketplace including online mall, link trading post, web articles and community board.
- php-forum Super User
- Posts: 193
- Joined: Sat Mar 29, 2003 11:57 pm
- Location: Auckland, New Zealand
To get the current hour do this.
Then with your pull down menu have a switch statement deciding which choice to use. Remember, the hour will be the servers hour rather than the users timezones hour.
Code: Select all
$currhour = date("H", time());