Quote:
|
Originally Posted by m_lacom99 Hey Jay just between you and me  , ive been sitting here for over an hour to see when Matt would go online  . |
Heh. Sorry I was eating my bachelor dinner of chicken off the Foreman grill with stove top stuffing.
FYI - HOW THIS WINNER WILL BE DRAWN :
-----------------------------------------------
In the past I scripted some madness in PERL computer language that would draw a winner in real time. Well now the site is in PHP and it will be some time before I have the PHP Kung Fu down.
So I am going to keep it simple and use some javascript through my brower to determine a candidate to win.
Basically what I will do in less than an hour is pull up from the database the list of people that have submitted reviews. If there are 36 3reefers with reviews I will keep the number 35 in mind because computers think in ranges starting from 0 and not 1. So a range of 0 - 35 is really taking into account 36 people. The first person on the list will be assigned the number 0.
I will then punch in the number 35 into a simple random script:
Math.round(Math.random()*35)
This will kick out a random number between 0 and 35 rounded so that we don't have numbers like 2.35965978.
Then I will see who has been assigned that number and check to see if they have had 10 recent posts since November simply by going to their public member profile and clicking on the 'Find all posts by (member)' link.
That's the rocket science involved.