![]() |
|
|
#1 |
|
Junior Member
Join Date: Nov 2004
Posts: 2
|
Needt to design rental database - How do I begin
Hi
I am to design a community rental database. I've already done the following: 1. Read a book on php&mysql 2. Gained access to hosting where php and mysql tools are available for my use 3. Able to use an already registered domain name 4. Working experience of html The book I read gives the syntax for php and mysql scripts. Yet its seems to me that I don't just begin coding without some kind of road map. Something that connects every aspect of the community rental requirement for this database; and, which results in a functional website from both server and client side. Please help me get started. Tj |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Jun 2004
Posts: 383
|
Re: Needt to design rental database - How do I begin
This is a huge undertaking considering you are just learning all of this. Everyone has their own take on how to begin something like this and a lot depends on how much programming you've done in the past. If you are an experienced programmer, this will be much easier of course. If not, then it will take you a very long time. I wouldn't worry about the road map at first. I'd start with one module/aspect of what you're looking to do. Build it simple first, then as you get experience, build more of it, and then you'll be ready to plan a road map.
If you have a timetable and want to get a headstart, you might want to look at some existing app that's similar and that you can modify. Or look at a templating system that can give you a huge headstart. I never used it, but I heard that "smarty" was good. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2004
Posts: 11
|
Re: Needt to design rental database - How do I begin
Hi,
Yes designing databases is extremely important and can be tricky. I do it for a living. What exactly are you renting? Properties? You normally start by describing all the business entities and their relationships. For example A person can rent zero, one, or many properties. A property can be rented by one person at one time, and many people over time. A property is owned by a person or company. A property rental rate varies by calendar date(s) or seasons Some smart practices for design, if you're not keeping history on your business entities include: each and every table should have 4 tracking columns: creation_date, creation_userid, last_update_date, last_update_userid; use auto increment to generate unique identifiers for your business entities I can tell without knowing your requirements, you'll have to store people and organizations or companies. You can place them into one table called a 'party' table. It should minimally have party_id, party_type, person_fnm, person_mi, person_lnm, org_nm if a row in this table represents a person it's party_type will be 'PERSON' whereas if it represents a copmany or organization it will be 'ORGANIZATION'. Keep a separate table to store information about the property vs. the rental. The property itself exists if or if not it is ever rented. The rental is the association or relationship of a person (or many people), a property, some time frame, some amount, etc. OK... you have to start with defining your business entities and their relatoinships to see what information you have to capture Good Luck Tell E.F. Codd I said Hi!!! Vmusic |
|
|
|
|
|
#4 | |
|
Administrator
Join Date: Jun 2004
Posts: 383
|
Re: Needt to design rental database - How do I begin
Quote:
Last edited by Administrator : 12-01-2004 at 06:30 AM. |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2004
Posts: 2
|
Re: Needt to design rental database - How do I begin
Thanks for your comments.
In reviewing Smarty I was directed to also look at PHPSavant, which I did. I decided go with PHPSavant because it is consistent with the PHP coding language. Also, I appreciate the concrete ideas for the database structure. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 3.3 Creating and Using a Database | Administrator | Documentation | 13 | 06-09-2004 04:56 PM |
| 1.2 Overview of the MySQL Database Management System | Administrator | Documentation | 0 | 06-07-2004 10:11 PM |