I have a website that allows users to post jobs into a mySQL database and then pull results according to certain variables they set.
They have these same set jobs that reoccur every week and would like to 'click a button and enter them in'. So what i was thinking is create a form with the default values of the jobs required (this will allow them to remove/add jobs still) and have php get the date of monday-friday next week and enter them in on the days needed.
I've been modifying the following code to get the dates:
Problem being if they insert the jobs on a wednesday or thursday the date for friday will be this weeks date and not the following.
Any idea's on how i could go about resolving this as i am kind of in a pickle.
~ Kam
They have these same set jobs that reoccur every week and would like to 'click a button and enter them in'. So what i was thinking is create a form with the default values of the jobs required (this will allow them to remove/add jobs still) and have php get the date of monday-friday next week and enter them in on the days needed.
I've been modifying the following code to get the dates:
$tod=date("N")-2;
$mon=strtotime('+'.$tod.' days');
echo date('d M Y',$mon);Problem being if they insert the jobs on a wednesday or thursday the date for friday will be this weeks date and not the following.
Any idea's on how i could go about resolving this as i am kind of in a pickle.
~ Kam

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top









