Forum Moderators: coopster
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
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].