grlayouts Posted March 16, 2007 Share Posted March 16, 2007 ok i have a timer that counts down 15 mins I wanna know how i can get it to count down without refreshing all the time. <?php if ($countup > 0) { $mins = floor ($countup / 60); $secs = $countup % 60; printf (" %d min : %2.0f secs", $mins, $secs); } ?> Link to comment https://forums.phpfreaks.com/topic/43039-ticker/ Share on other sites More sharing options...
shaunrigby Posted March 16, 2007 Share Posted March 16, 2007 This is more of a JavaScript Jobby, visit www.dynamicdrive.com for free to use scripts Link to comment https://forums.phpfreaks.com/topic/43039-ticker/#findComment-209058 Share on other sites More sharing options...
bwochinski Posted March 16, 2007 Share Posted March 16, 2007 Really it's always counting down by the nature of the passing of time (assuming $countup is "static" per session, not per pageload) and that fact will be reflected when the page is refreshed, but I'm betting that isn't what you're looking for. In which case you need to turn to client side scripting, probably javascript, in order to dynamically update the page. Link to comment https://forums.phpfreaks.com/topic/43039-ticker/#findComment-209060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.