Re: Counter

From: Date: Fri, 09 May 2003 02:10:30 +0000
Subject: Re: Counter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146960@lists.php.net to get a copy of this message
Shaun-- 7000 per day is about once every 12 seconds. You should be able to use PHP to calculate a starting number for a page based on the current timestamp. Then use Javascript on the page to increment the count once every twelve seconds. --John On Thursday 08 May 2003 09:12 am, Shaun wrote: > Hi, > > I have a client who wants a counter on their site showing > a number which rises by 7000 a day and visibly clocks up > whilst a user is on the site. This is meant to show the > number of products they sell a a day. I'm just not sure > how this would work though, would i have to store the > ammount in a database, how would it increment whilst no > one is one the site. > > Thanks for your help

« previous php.general (#146960) next »