Jump to content

Archived

This topic is now archived and is closed to further replies.

aminnuto

How do i make a php click countdown counter?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.