mme Posted June 8, 2011 Share Posted June 8, 2011 Hi, I am trying to make a simple reservation program with PHP and MySQL. How do I check if that Room is available between certain dates. My Table looks like this: Room | Start Date | Finish Date 2 | 1307520000 | 1307692800 Thanks, mme Quote Link to comment https://forums.phpfreaks.com/topic/238812-comparing-dates/ Share on other sites More sharing options...
Maq Posted June 8, 2011 Share Posted June 8, 2011 Change the format of the incoming date to be a timestamp, then compare, also include the room condition. Have you attempted to write the query? Quote Link to comment https://forums.phpfreaks.com/topic/238812-comparing-dates/#findComment-1227105 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.