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? 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() Link to comment https://forums.phpfreaks.com/topic/130064-dates/#findComment-674540 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.