I have a database where I'm storing some user information, but I only want
the entries to remain in the database for a certain amount of time (say 72
hours). I have a datetime field in my database so I can manually tell, but
obviously that will be a real headache.
I thought maybe I could do some php in a private script to search through
the database and delete rows where time has expired, but not sure really how
that would work.
Also, I doubt it... but is there are way to set up mySQL entries to
autodelete after a certain time?
Hope you guys can help with some advice.
the entries to remain in the database for a certain amount of time (say 72
hours). I have a datetime field in my database so I can manually tell, but
obviously that will be a real headache.
I thought maybe I could do some php in a private script to search through
the database and delete rows where time has expired, but not sure really how
that would work.
Also, I doubt it... but is there are way to set up mySQL entries to
autodelete after a certain time?
Hope you guys can help with some advice.
Comment