I'm retrieving time off requests from mySQL, which gives me ALL of the dates a person has requested
This query
gives me this resultCode:SELECT c.event_date ,c.event_type ,m.member_id ,m.firstname ,m.lastname FROM calendar c JOIN members m ON c.lo_id = m.member_id WHERE c.event_type <> '' AND c.approved = 0
Now, instead of listing ALL of the days each person has off, I'll only need to get the start date and the end date for each person, so that I can print out the following on the web pageCode:2013-05-24 Vacation 9 John Doe 2013-05-01 Medical 8 Jane Doe 2013-05-02 Medical 8 Jane Doe 2013-05-03 Medical 8 Jane Doe 2013-05-06 Medical 8 Jane Doe
Requested Time Off
John Doe: 2013-05-24 (Vaction)
Jane Doe: 2013-05-01 - 2013-05-06 (Medical)
As you can (hopefully) tell by this post, I have no idea how to get the start date and end date and omit the in-between dates for each person.![]()



Reply With Quote




Bookmarks