Jump to content


Photo

How do i make a php click countdown counter?


  • Please log in to reply
3 replies to this topic

#1 aminnuto

aminnuto
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 October 2006 - 07:17 PM

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.


#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 27 October 2006 - 07:26 PM

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.
PHP Ninja

#3 aminnuto

aminnuto
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 October 2006 - 07:28 PM

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.

#4 aminnuto

aminnuto
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 October 2006 - 08:02 PM

I just used a perl script counter and set it to countdown instead of count up.


thanks anway




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users