Too many information to be stored

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lucfer
Forum Newbie
Posts: 7
Joined: Tue Nov 08, 2005 7:59 pm

Too many information to be stored

Post by lucfer »

Hi,

I have received an assignment from my teacher. I have to create a simple hotel reservation website. The website must be dynamic enough such that it can stores any number of hotels available. To make it more complicated, the room rental rate is different from time to time, based on the holiday season. A hotel can also have many kind of rooms.

The problem now is, I dont know how to store the room rate. Should I keep it in database or in a file? How do I keep it?


Please help me. I really need this reply. Thank you very much.
stuffradio
Forum Newbie
Posts: 14
Joined: Tue Jan 03, 2006 2:33 am

Post by stuffradio »

The best solution IMO is to store it in a db.
lucfer
Forum Newbie
Posts: 7
Joined: Tue Nov 08, 2005 7:59 pm

Post by lucfer »

How should I keep the room rate in a database?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

lucfer wrote:How should I keep the room rate in a database?
In a column that is an appropriatly sized floating point number to store the rate.
(#10850)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

look here
Post Reply