ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2011, 07:31 AM
hemmjonny hemmjonny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 3 hemmjonny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 45 sec
Reputation Power: 0
Help designing a hotel booking system

Hi all,

I am about to start making a hotel booking system in CF

I am banging my head against the wall but cannot think what the best way is to do it.

That bit’s I am having a problem with is:
Searching for a room from a date range.
Marking the room unavailable for that date range.
And last but not least what’s the best way to set up the DB.

Thanks

Jonathan Hemmings

Reply With Quote
  #2  
Old March 16th, 2011, 07:58 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,874 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 17 h 30 m 25 sec
Reputation Power: 2569
Welcome to DevShed, hemmjonny.

This sounds as though you have told someone that you can do something that you cannot.

A hotel booking system would require electronic transfer of personal and financial details. Are you qualified to be coding something of that nature? There would be dire ramifications if the security failed.

Perhaps I have misread your initial post. If you are unsure where to begin, the most simple method is to write a flow-chart of what happens when someone logs onto the website and begins their booking. The database design and structure should flow from that.

I would suggest you make a start on the concept and post it here for discussion.
__________________
[PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

W3Fools - A W3Schools Intervention.

Reply With Quote
  #3  
Old March 16th, 2011, 08:15 AM
hemmjonny hemmjonny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 3 hemmjonny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 45 sec
Reputation Power: 0
Quote:
Originally Posted by Winters
Welcome to DevShed, hemmjonny.

This sounds as though you have told someone that you can do something that you cannot.

A hotel booking system would require electronic transfer of personal and financial details. Are you qualified to be coding something of that nature? There would be dire ramifications if the security failed.

Perhaps I have misread your initial post. If you are unsure where to begin, the most simple method is to write a flow-chart of what happens when someone logs onto the website and begins their booking. The database design and structure should flow from that.

I would suggest you make a start on the concept and post it here for discussion.


Thanks for the post. Your right this project it a bit bigger than what I normally do. Streamline will be handling all the personal and financial details.

I am just struggling where to start the main bit I can’t get my head round is when a room is booked how to put that date range into the DB so it will show as booked when someone else tries to book


Thanks

Jonathan

Reply With Quote
  #4  
Old March 16th, 2011, 08:22 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,874 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 17 h 30 m 25 sec
Reputation Power: 2569
Well, there are many ways to design your database for this sort of application. The most simple would be to have two fields, one start date, one end date. You would need to have tables for rooms and dates, so that rooms can be marked off as unavailable. The list goes on. As I mentioned, you should make yourself a flowchart.

Reply With Quote
  #5  
Old March 16th, 2011, 08:33 AM
hemmjonny hemmjonny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 3 hemmjonny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 45 sec
Reputation Power: 0
Quote:
Originally Posted by Winters
Well, there are many ways to design your database for this sort of application. The most simple would be to have two fields, one start date, one end date. You would need to have tables for rooms and dates, so that rooms can be marked off as unavailable. The list goes on. As I mentioned, you should make yourself a flowchart.


Yeah will do that today. I think i am just having a bad day.

Thanks mate

Reply With Quote
  #6  
Old March 16th, 2011, 08:37 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,874 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 17 h 30 m 25 sec
Reputation Power: 2569
Post back when you need help.

Reply With Quote
  #7  
Old March 16th, 2011, 01:02 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Searching for a room in a date range is simple SQL. Any book or tutorial on SQL will include sections on matching records using criteria.

To mark it as unavailable, one option is a simple bit column in the table that flags the room as unavailable. But since I'm not sure what the business rules are for when a room is or is not available, I can't really recommend a specific approach.


Quote:
Originally Posted by hemmjonny
Hi all,

I am about to start making a hotel booking system in CF

I am banging my head against the wall but cannot think what the best way is to do it.

That bit’s I am having a problem with is:
Searching for a room from a date range.
Marking the room unavailable for that date range.
And last but not least what’s the best way to set up the DB.

Thanks

Jonathan Hemmings

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Help designing a hotel booking system

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap