HueyJib Posted October 25, 2008 Share Posted October 25, 2008 Hi. I'm scripting a pastebin website and I'm working on the expiry. What I've done is made a table with now and expire columns. I want the now column to automatically update and if now equals expire, then it'll delete the row. How do I do that? Quote Link to comment https://forums.phpfreaks.com/topic/130064-dates/ Share on other sites More sharing options...
Barand Posted October 25, 2008 Share Posted October 25, 2008 Only select rows where expire > NOW(). Periodically run a script to delete rows where expire < NOW() Quote Link to comment https://forums.phpfreaks.com/topic/130064-dates/#findComment-674540 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.