General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 4th, 2002, 06:26 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Suggestions for DB setup

I'm going to start developing a tracking system for my business clients. I want to do it w/ PHP & mySQL as I find it will be easier than doing the same in Java... Besides, I'm really enjoying learning as much as I can with PHP!

I'm trying to figure out the best way to setup the database... Essentially, what I want to do is setup a system that will allow me to store and track client information including contact info, passwords I've assigned, domain names, etc... but I also want to track the costs I've charged my clients for my services, as well as a way to send myself (and possibly in the future, the client) a reminder to send an invoice for recurring charges (ie: hosting, etc...).


So far, I've come up with this db structure:

Clients Table
clientID | clientName | clientAddress | clientPhone | clientEmail | clientURL | clientPasswords

Costs Table
itemID | itemName | itemCost | clientID |

Reminders Table
reminderID | dateOfNextBill | clientID |

----------------

I'm not sure if I have it setup properly, or whether I should go about it another way... Any suggestions/corrections would be much appreciated! Thank you!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #2  
Old July 4th, 2002, 07:20 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
that looks good so far, but maybe you could create a orders table, which stores details for each order, then make the costs table link back to that:???? just a idea

Reply With Quote
  #3  
Old July 4th, 2002, 07:34 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Quote:
Originally posted by Ben Rowe
that looks good so far, but maybe you could create a orders table, which stores details for each order, then make the costs table link back to that:???? just a idea


I'm not sure if I understand fully... Do you mean almost like an "ordering system" where I select the items the client is ordering?

I use Quicken for all my financial transactions (orders, etc...), but I wanted to create this system to keep track of simple things that are too painstaking to keep track of in Quicken. It's not that Quicken can't do it, but I would find it easier to create my own system and customize it to my own needs.

Any details on your suggestion would help!


Thanks!

Reply With Quote
  #4  
Old July 4th, 2002, 07:59 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
yeah, basically that would create a mini ordering system

Clients Table
clientID | clientName | clientAddress | clientPhone | clientEmail | clientURL | clientPasswords

Order Table
orderID | orderAddress | contactNumber | DispatchDate | OrderTotalCost | orderDate | clientID |

Costs Table
itemID | itemName | itemCost | corderID |

Reminders Table
reminderID | dateOfNextBill | clientID |

This way all orders can tracked to see what items and where its been sent to. also the date of when it was sent.

hope that makes more sense, this way you'll be using your own system more, which give you a better advantage, since you know exactly how it works

Reply With Quote
  #5  
Old July 4th, 2002, 08:11 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Quote:
Originally posted by Ben Rowe
yeah, basically that would create a mini ordering system

Clients Table
clientID | clientName | clientAddress | clientPhone | clientEmail | clientURL | clientPasswords

Order Table
orderID | orderAddress | contactNumber | DispatchDate | OrderTotalCost | orderDate | clientID |

Costs Table
itemID | itemName | itemCost | corderID |

Reminders Table
reminderID | dateOfNextBill | clientID |

This way all orders can tracked to see what items and where its been sent to. also the date of when it was sent.

hope that makes more sense, this way you'll be using your own system more, which give you a better advantage, since you know exactly how it works



Okay... I think I have an idea of how this can shape up. Just to clarify:

orderAddress: Customer's Address (in the case of goods, the shipping address)?

dispatchDate: Is that the shipping date?


As for the "dateOfNextBill"... If I was to bill the customer every six months, would I just add 6 months from the date of the bill, or would it be best to be able to choose the timeframe? If so, how should I go about doing that?


Thanks for the help!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Suggestions for DB setup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway