Jump to content


Photo

Room booking


  • Please log in to reply
3 replies to this topic

#1 Dan_comp

Dan_comp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 10 March 2006 - 11:58 AM

I am trying to create a room booking script. People cant book the same time in the same room on the same day. I am having a problem with the time part. The form before sends a start time and an end time. I need a code that if the start time and/or end time is within a time already booked in that room on that day, it echos problem. I am not very good at time in php. My booked times are kept in a mysql database.

#2 Mouse

Mouse
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts
  • LocationToo Close to LONDON

Posted 10 March 2006 - 12:21 PM

[!--quoteo(post=353592:date=Mar 10 2006, 11:58 AM:name=Dan_comp)--][div class=\'quotetop\']QUOTE(Dan_comp @ Mar 10 2006, 11:58 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I am trying to create a room booking script. People cant book the same time in the same room on the same day. I am having a problem with the time part. The form before sends a start time and an end time. I need a code that if the start time and/or end time is within a time already booked in that room on that day, it echos problem. I am not very good at time in php. My booked times are kept in a mysql database.
[/quote]
i had the same issue... so i cheated... i looked at sorce forge, they have an opensource solution... so i used it as reference.... saw the trick, worked it out...

Mouse

#3 Dan_comp

Dan_comp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 10 March 2006 - 01:40 PM

Cheers, where about is it?

#4 Dan_comp

Dan_comp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 10 March 2006 - 02:05 PM

Ok i have found some and will have alook at them, which one did u use?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users