View Single Post
Old 12-11-2007, 03:44 PM   #2 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

It's a nice start, you may want to do some research into the Table Data Gateway and Row Data Gateway patterns as these provide a really flexible solution to this problem.

If you are looking for a pre-built solution, [url=http://framework.zend.com/]Zend Framework[/a] provides a set of related classes to facilitate a SQL database interface.
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Karl is offline  
Reply With Quote