Can database remove rows itself with condition?
Usually I have removed data from database by user action, but now I want database to do it by itself. It should be able to delete rows with timestamp without user. Every time when row has older timestamp than NOW() it deletes itself.
Can anyone recommend any databases or (tools) for my project?
Tools that I am going to use in this project is strictly PHP, Javascript, HTML and CSS.
I am familiar with MySQL, but I haven't found any information from the web that would answ er to my question. At least not to my cause.
Currently I have this set up
User adds "task" to MySQL "tasks" table with startdate
and enddate
(both are in mm/dd/yyyy format) alse active
which is 1.
I need to create event that checks each day (at midnight) each row in "tasks" table is this day older than enddate
and if it is update active
into 0 otherwise leave it as it is.