General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
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:
  #1  
Old July 4th, 2002, 07: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: 9
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, 08: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, 08: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: 9
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, 08: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, 09: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: 9
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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek