Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calendar

Status
Not open for further replies.

monasa

IS-IT--Management
Jun 27, 2004
41
0
0
CA

HI,

In my database I have a file which containt the reservation date of each room, (from .. to ..).

For Each room I want to build a calendar of the current a month, which show for each day if the room is available or not.

Thanks in advance.

M.N
 
Try google. "php calendar" turns up quite a few nice implimentation.
 
Why not make a script which works like a guestbook?

First table, is for orders:
You have the visitor name, phone number, email adress, adress, unique user_id, and a field for room_number You also have one field "from_dt" and one "to_dt" (from and to-date which it is reserved). Maybe a discount field is also to be implemented?

Then you have another table for rooms, which has unique_id, room-number, room-key-number, room-notes, etc.

You might also then have a third order:
room_enqueries

the room_enqueris could handle things like: if they order pizza, if something is wrong in the room, is something missing? Do they want a wakeup-call? etc.

You then make it clean and simple, with natural joins.
You select where the date is correct.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top