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. Link to comment https://forums.phpfreaks.com/topic/25340-how-do-i-make-a-php-click-countdown-counter/ 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. Link to comment https://forums.phpfreaks.com/topic/25340-how-do-i-make-a-php-click-countdown-counter/#findComment-115534 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. Link to comment https://forums.phpfreaks.com/topic/25340-how-do-i-make-a-php-click-countdown-counter/#findComment-115535 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 Link to comment https://forums.phpfreaks.com/topic/25340-how-do-i-make-a-php-click-countdown-counter/#findComment-115549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.