Update datebase and website behind the scenes
<p>Imagine I have a website where people can submit to a party within a time limit. If the time limit reach the end, the party submission closes, and one column 'StatusClose' in the 'Party-table' will say 'Y' instead of 'N'. Users can no more submit to the specific party (in each row).</p>

<p>I can make this work if some user refreshes the site, to update the database, but I just feel its not the correct way of making it?</p>

<p>Is there a design, behind the scenes, that automatically closes a party, instead of it is depending on the refresh from a random user? I think of something automatic...</p>