Forum Moderators: coopster

Message Too Old, No Replies

A realtime countdown script

         

kkrumlia

10:43 pm on Jul 17, 2003 (gmt 0)

10+ Year Member



Hi there

Has anyone come agianst a realtime countdown php script that starts from a certain date and keeps on going.
For example we specify the day of today and the time and the script just calculates from that start point so tommorow it should say 1 day couple hours etc. , I've searched for some but all give me count downs from a certain date that is how many days hours to reach that date. I want the reverse start from a certain day and keep growing.

THanks for the help

Birdman

11:02 pm on Jul 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know of a script, but you could do it yourself.

It should be easy...just record the start date/time in your db or flatfile, and then do the math every time you access the db. You can get current time with any server-side scripting language.

If you use PHP, check out Date and Time functions [php.net] and MySQL Date and Time Types [mysql.com].