anthonydamasco Posted September 7, 2006 Share Posted September 7, 2006 Well I have to make a "job search" for a temperary staffing company. What i have to do is make a control panel for staffing coordinators that will allow them to post jobs. That is the easy part. I have to set an option on the form to make this automaticly expire after a certian amount of days. Like if the job starts next week, I'll have it expire in 7 days.can anyone help me figure out how this can be done? Link to comment https://forums.phpfreaks.com/topic/20051-search-entry-expiration/ Share on other sites More sharing options...
Gruzin Posted September 7, 2006 Share Posted September 7, 2006 I think you should use Mysql autodelete:[code]<?$today = date("YmdHi", time()); //or whatever date format you useinclude('connectionStringInfo.php');mysql_query("DELETE FROM events WHERE eventDate < '$today' ");mysql_close();?>[/code] Link to comment https://forums.phpfreaks.com/topic/20051-search-entry-expiration/#findComment-87988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.