I'm doing a school project in which I have to put news in an SQL database and, when a certain time passes (around a week or so) automatically edit the database to notify that a specific piece of news is no more active. For example, I put on a news on monday, and I want it to automatically disappear (or appear as "closed") on the morning after. So, what I would need is a PHP function (or an SQL one) that automatically starts with a specific timeout and edit the database. Does anyone know something like that? Thank you in advance for your help
PS I'm using PHP 5.3.10 and SQL 3.4.10 and I'm stick to them because they're installed on my lab computers