aminnuto Posted October 27, 2006 Share Posted October 27, 2006 I have one php file and i want to show that there are 20 units available of a product. but every time that product is purchased, i want to display how many units are left.How do i make a countdown counter where a number is displayed on a page and each time someone goes through to my sold page, the counter decends 1. Quote Link to comment Share on other sites More sharing options...
Caesar Posted October 27, 2006 Share Posted October 27, 2006 Simple math, and a MySQL database. ;-) If you're asking for a script, I suggest you do a little reading and pickup the basics of PHP before tackling such things. Quote Link to comment Share on other sites More sharing options...
aminnuto Posted October 27, 2006 Author Share Posted October 27, 2006 could i just use a counter script which decends rather then acends? then i can put it into an inc file and display that on my page. Quote Link to comment Share on other sites More sharing options...
aminnuto Posted October 27, 2006 Author Share Posted October 27, 2006 I just used a perl script counter and set it to countdown instead of count up.thanks anway Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.