I'm trying to make a timer for a game running on a phpBB forum. The timer would display different times for each user, when appropriate. Time left would be stored in the MySQL database, and called and displayed on the screen. Unfortunately, all the timer scripts I've found so far seem to count down to a specified date. I'm really not sure how to go about this. Can anyone help please?
so just want the date / time to be displayed? all you need is the date function then. http://us3.php.net/manual/en/function.date.php
Unfortunately, no. Say the player enters an area, they use something which resets the timer to say, 30 min. The timer then starts counting down to zero. When it reaches zero, something happens (haven't decided what yet, but that's probably the easy part). Each player would have a different timer, and it wouldn't start running until certain conditions are met.
PHP can't do a "live countdown." you'd need to export the time via php then do the countdown via javascript or something.