I was just wondering if it is possible for a php code or javascript (whatever) to produce a random number 1-48 or so once every week.
Is it possible. I can also use mysql to just so you know.
cameraman
7:23 pm on Apr 28, 2008 (gmt 0)
I would store the random number indexed by week number in the table. Use date('W') to see what week it is & retrieve the number - if there is no number, generate a new one and store it.
henry0
7:26 pm on Apr 28, 2008 (gmt 0)
They are many ways to get some rand start by the manual: Rand: RAND [us.php.net]
Once a month: Use cron, a while ago I wrote a mini "how to" follow that link and scroll down the post CRON [webmasterworld.com]