freelanceprogrammers.org Forum Index » PHP

extending a "hotel room availability" db table


View user's profile Post To page top
attanasio@... Posted: Mon Apr 11, 2005 1:34 pm


Joined: 19 Mar 2005

Posts: 12
extending a "hotel room availability" db table
hi guys,
I have the following table, storin information about room availability for a
hotel:

*availability* (*id**, room_type*, num_rooms); //The *italics* refers to
foreign keys
This table is part of a pseudo-availability system. Pseudo because
initially no date was required for the availability check.
But now I have to extend this table to include dates. What is the best way
to do that?
Maybe something like:
*availability* (*id**, room_type*, date_from, date_to, num_rooms);
And then check occupied rows for availability ?
Any idea ?
thanks in advance
--
Oreste Attanasio
attanasio@...


[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help