Trip planner

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2009
Posts: 2
Reputation: shweta_babbar is an unknown quantity at this point 
Solved Threads: 0
shweta_babbar shweta_babbar is offline Offline
Newbie Poster

Trip planner

 
0
  #1
Sep 21st, 2009
In my website on trip planner,I want that user can check if room is available or not...b/w particular dates..
how can i do this?
also..how shud i create the database..??as in what atrributes shud i use?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 55
Reputation: wilch is an unknown quantity at this point 
Solved Threads: 9
wilch wilch is offline Offline
Junior Poster in Training

Re: Trip planner

 
0
  #2
Sep 21st, 2009
Well for your database you can create a table called tblRooms, which contains the following fields:
- room_id (primary key)
- room_name (varchar)
- room_features (string/text ?!?)
- is_booked (boolean)
- date_booked (date)
- duration_booked (integer => num of days)

Now to check if the room is available between certain dates, you search for the range of dates from (date_booked) to the (date_booked + duration_booked) date.

I also think, you should have a table tblBookings, to store all of your bookings. This table must also have the foreign key room_id from the tblRooms.

The design, is not so perfect as i can perceive other things already, but it should give you an idea of the course to take.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 2
Reputation: shweta_babbar is an unknown quantity at this point 
Solved Threads: 0
shweta_babbar shweta_babbar is offline Offline
Newbie Poster

Re: Trip planner

 
0
  #3
Sep 21st, 2009
I didn't understand clearly ..
cn u gv me C# code..4 this trip planner..??
Last edited by shweta_babbar; Sep 21st, 2009 at 2:54 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 55
Reputation: wilch is an unknown quantity at this point 
Solved Threads: 9
wilch wilch is offline Offline
Junior Poster in Training

Re: Trip planner

 
0
  #4
Sep 22nd, 2009
Sorry mate, but my c# is not so sharp, if you could write something out, and then i will aid you along the way !
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC