By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,453 Members | 1,556 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,453 IT Pros & Developers. It's quick & easy.

countdown timer

P: 2
i am doing work at php with smarty.i want to be used a countdown timer in my web page.i am using this counter for my products.i want this counter work like this web site

guys any one can help me..
Jan 17 '12 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,584
set the "expire" date in the future in timestamp form.

To get the date to count down, subtract current time from it like so:

$tl = date('Y-m-d H:i:s',$expire-time())

Good luck,

Jan 23 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.