Possible Duplicate:
What is the difference between Data Abstraction Layer & Data Acess Layer?
I just read up this article on nettuts. I got kinda confused. What's the difference between a Data Access Layer and a Database Abstraction Layer?
Also, should I make my own customized classes for this or is it better to use PDO?
I have a class DatabaseOps
which performs all the CRUD operations. Other classes (eg. User) inherits from it and uses methods from this class to perform the CRUD actions. I have another class named Database
which does the open connection, close connection, fetch array, confirming query, etc.
Should I write them into a single class (Data Access/Abstraction Layer) ? Which one would be better?