richiec Posted September 17, 2007 Share Posted September 17, 2007 Hey guys http://fearedwarlords.dks-gfx.com/timeframe/index.php If you go there you will see a bunch of images with hover overs of wether or not each one is due or not. What i would like to do is when updating it to put a "kill time" when it was last killed, and then put a "due time" where you put in the hours and minuets untill it is due again. Once updated for it to start the count down timer for the one i just updated. Right now it pulls the times from the db then just use variables for it to display the times they are due. Any ideas on how i can get it to be a count down timer insted? Something like "last killed at <time> on the <date>" then the count down timer below it like "due in x hours x mins" Link to comment https://forums.phpfreaks.com/topic/69641-count-down-timer-from-mysql/ Share on other sites More sharing options...
rarebit Posted September 17, 2007 Share Posted September 17, 2007 Yep, get the 'due' time from the db, then it really comes a js issue, use 'setTimeout()' to animate. The countdown is: time_left = due_time - time_now Link to comment https://forums.phpfreaks.com/topic/69641-count-down-timer-from-mysql/#findComment-349937 Share on other sites More sharing options...
richiec Posted September 17, 2007 Author Share Posted September 17, 2007 im a total js noob lol but thanks for the reply ill see if i can get something working from it. Rich Link to comment https://forums.phpfreaks.com/topic/69641-count-down-timer-from-mysql/#findComment-349948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.