Jump to content

Recommended Posts

I need a mysql query that if I feed the the query two dates such as 2006-06-01 and 2006-06-07, I need the query to spit out the date and the day of week. as stated above.

So the user inputs two dates to search between and the query will take that and generate the following.

2006-06-01 Thursday
2006-06-02 Friday
2006-06-03 Saturday

I need these to process the rest of the php script and I know that mysql can produce these items.

Thanks
Scott
Link to comment
https://forums.phpfreaks.com/topic/10959-need-date-query/#findComment-40939
Share on other sites

I have a scheduling script that shows the days of the business week. Mon-Fri. So the user can input two dates into a form to search for that weeks appts. So I need to gather each of those dates so june 1 thru June 7 and the days that those dates fall on. Such as June 2 is a Wednesday. June 3 a Thursday. Then I take that info into an array and grab the scheduled appts for those dates and display to the screen according to the day of the week. Mon Tues Wednes etc.

Cause we only need the business days appt since that is when they are only scheduled.

Link to comment
https://forums.phpfreaks.com/topic/10959-need-date-query/#findComment-41032
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.