Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Count down timer from now to a specific time
Old 12-02-2009, 04:50 AM Count down timer from now to a specific time
Skilled Talker

Posts: 97
Trades: 0
i enters date and time into my database table.. after that i select this time and date in a query.
all that i need is to countdown the timer from time now to the date that i select from databse

example:
i got from database the time in which the data is inserted:

$result = 2009-12-02 05:34:58;

now i want to count down the time from now

2009-12-02 06:34:58;

to $result


so it will count 01:00:00 too 00:00:00


Note :
i wnt the countdown timer to be shown to the user i dont want to tell him that there is one hour left, i want to show the time that counts from now to result.

can anyone help me in doing this module?
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-02-2009, 05:58 AM Re: Count down timer from now to a specific time
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can't be done with PHP. PHP runs on the server and cannot send data back to the client with a request being made.

A java applet is the only way of maintaining a running server countdown for one hour without crashing browsers.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-02-2009, 06:52 AM Re: Count down timer from now to a specific time
lazcorp's Avatar
Average Talker

Posts: 22
Name: Martin
Trades: 0
You can do this with crontab together with some additional checks.

One possible way of solution is to do check the elapsed time, not to count off each second
lazcorp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Count down timer from now to a specific time
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41492 seconds with 12 queries