Jump to content

Booking system- bookings per week


lynchpin

Recommended Posts

Hello,

 

I have browsed through the board but cant find anything similar to what I require.

 

I am building a booking system and I have multiple views, day/week/month for the booking calendar. I have been able to get the day view working, but now am stuck. I cant find a way to retrieve the bookings for a given week from my database.

 

I tried the following query:

 

------------------------------------------------------------------

select * from bookings where '2008-12-07 00:00:00' AND '2008-12-14 00:00:00' BETWEEN bookings.starting_date AND bookings.ending_date;

------------------------------------------------------------------

 

My bookings table has the following fields

------------------------------------

booking_id

user_id

subject

location

starting_date

ending_date

description

date

-----------------------------------

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/136222-booking-system-bookings-per-week/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.