burtybob Posted October 26, 2007 Share Posted October 26, 2007 I have a bank script that gets the time from a databse however putting it into the database i use time()+24*60*60 which is one day. However this means that in the database is all those number what i would like to do is turn it from those numbers into a time and then have it "tick" down... OR Maybe just be able to skip the bit with turning it into a date and just make it so i can "tick" down 23:59:59 23:59:58 23:59:57 23:59:56 23:59:55 23:59:54 etc. Please does anyone know how i can do this? Quote Link to comment https://forums.phpfreaks.com/topic/74896-best-way-to-makeing-a-ticking-clock/ Share on other sites More sharing options...
Psycho Posted October 26, 2007 Share Posted October 26, 2007 You want Javascript for this Quote Link to comment https://forums.phpfreaks.com/topic/74896-best-way-to-makeing-a-ticking-clock/#findComment-378674 Share on other sites More sharing options...
premiso Posted October 26, 2007 Share Posted October 26, 2007 You want javascript and/or ajax. As php has no control over the page after it has been processed. Quote Link to comment https://forums.phpfreaks.com/topic/74896-best-way-to-makeing-a-ticking-clock/#findComment-378678 Share on other sites More sharing options...
burtybob Posted October 26, 2007 Author Share Posted October 26, 2007 You want Javascript for this I have javascript but it cant use the weird timestamp and countdown as a 23:59:40 Style that is why im asking about changing from timestamp to date and then countdown i think now maybe, should i be using date()? I know how to countdown but i need to change it from php readable to javascript readable Quote Link to comment https://forums.phpfreaks.com/topic/74896-best-way-to-makeing-a-ticking-clock/#findComment-378689 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.