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? 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 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. 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 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
Archived
This topic is now archived and is closed to further replies.