Re: counter reseting help!
| From: | Plutarck | Date: | Sat, 14 Apr 2001 14:51:46 +0000 |
| Subject: | Re: counter reseting help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48549@lists.php.net to get a copy of this message | ||
How are you saving the current counter amount?
For instance if it's in a database, add a date field.
Check to see if the date is more than 24 hours old before displaying the
current counter. If it is then update the database and make the counter
number 0. If it's not older than 24 hours, just do your counter as normal.
--
Plutarck
Should be working on something...
...but forgot what it was.
""McShen"" <webmaster@celebritieszones.com> wrote in message
news:9b9mg0$26o$1@toye.p.sourceforge.net...
> hi
>
> I am writing a small counter for my site. But i am not sure how to reset
the
> counter every 24h. How should i do it? any suggestions would be much
> appreaciated!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>