PHP & MySQL - How can I flag my database when a user deletes their account and after two weeks if the user has not logged in really delete the account -


i asked question earlier on how go deleting users account , got suggestion should flag database user has deleted account not delete account until after 2 weeks or so.

so question how flag database , have account deleted after 2 weeks if user has not logged in using php & mysql?

maybe create sql table contains users requests.

when user want delete account, add request table (like wich user_id, date_request etc). , everyday, check table delete (or not) accounts. check everyday should use crontab.

good luck !


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -