LMS17 Posted September 26, 2011 Share Posted September 26, 2011 Hi, I'm new to the forum, I have a slight issue with my script. Basically, I need to figure out a script that will allow me to do the following: - The user defines x amount of ours to count down (ie. 16 hours, 8 hours, 4 hours) - The script then starts the count down of the x hours - I need the script to count between 08:00 - 20:00 after 20:00 it needs to stop, then start again at 08:00 - The script also need to stop throughout the weekend (ie counts until 20:00 on friday, stops saturday & sunday, then starts 08:00 on monday) Can this be done? If so, any pointers or help? Many thanks, Lewis. Quote Link to comment https://forums.phpfreaks.com/topic/247881-count-down-timer/ Share on other sites More sharing options...
AyKay47 Posted September 26, 2011 Share Posted September 26, 2011 do you have any code at all? you can most likely google this topic and find may results.. Quote Link to comment https://forums.phpfreaks.com/topic/247881-count-down-timer/#findComment-1272843 Share on other sites More sharing options...
LMS17 Posted September 26, 2011 Author Share Posted September 26, 2011 do you have any code at all? you can most likely google this topic and find may results.. I had some code to define a timestamp for the timer to expire, but this wasnt very reliable as it could show 48 hours being available. I just need say, a jQuery timer that will start & stop, maybe insert something into the database to save where it was at when it stopped? I have googled for a while & nothing has come of my search. Thanks, Lewis. Quote Link to comment https://forums.phpfreaks.com/topic/247881-count-down-timer/#findComment-1272845 Share on other sites More sharing options...
AyKay47 Posted September 26, 2011 Share Posted September 26, 2011 found some examples on google.. http://www.google.com/#hl=en&sugexp=pfwc&cp=14&gs_id=1d&xhr=t&q=php+countdown+timer&pf=p&sclient=psy-ab&source=hp&pbx=1&oq=php+countdown+&aq=0&aqi=g4&aql=f&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.&fp=94458c7d4a23e13a&biw=1920&bih=1019 once you learn the basics, adding in the timer stops etc.. should be simple if conditionals.. Quote Link to comment https://forums.phpfreaks.com/topic/247881-count-down-timer/#findComment-1272848 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.