Forum Moderators: coopster

Message Too Old, No Replies

a special counter

         

jimmyyami

3:22 pm on Oct 12, 2007 (gmt 0)

10+ Year Member



I need a counter in web page to show how many register users.

The problem is... " i don't need the counter to show results in real time but refresh in every 24 hour. "

Any buddy knows how to do this?

Thanks you a lot!

eelixduppy

3:25 pm on Oct 12, 2007 (gmt 0)



Hello, and Welcome to WebmasterWorld!

You are going to have to create a script that counts how many registered users there are, and then run a cron [en.wikipedia.org] every 24 hours to execute that script.

If you are using MySQL, a COUNT of the rows should do the trick to grab the number of registered users.

jimmyyami

9:23 am on Oct 15, 2007 (gmt 0)

10+ Year Member



I've solved the problem, but your suggestion is great, thanks you.