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? Quote Link to comment 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] Quote Link to comment 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.