I'm creating a small website for my friends to have some fun. Basically what I have in mind is the following:
I will specify in the database how many grids there have to be rolling in the site. These grids are basically vague for users to enter into a "raffle". So we have for example 3 grids, one that costs 10 points each other vacancy that costs 20 and another that costs 30. This will be specified in the database and the user clicks on the desired vacancy to enter the "raffle". When all the vacancies are filled the draw will happen at random.org.
What I need to know is how I keep the site re-creating these raffles when they are done. For example, the 10-point raffle closed and was drawn, another 10-point raffle opens and so with the other values as well. I thought of something that checks in the database all the time but I know this is not quite the best solution, I need to know what to do.