By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 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
www.ebay.com
or
http://www.ebay.com/itm/victorian-12...item4cfd5de630

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


dlite922
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,


Dan
Jan 23 '12 #2

Post your reply

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