|
Hey, Dan!
Why is what worth it? Building a db wrapper class?
Many reasons: Flexibility, easy to update and edit the way your sql queries are handled, makes coding easier.
If you want to make a wrapper for your wrapper, so that you can easily switch between different databases, it would be best to create an abstract class for the wrapper of your wrappers ( if that makes sense )
abstract db class
-> mysql wrapper class
-> postgresql wrapper class
If you would like, I can code you up a simple example of a basic mysql wrapper for php.
|