Database Abstraction Layer in PHP

Posted on 2008-11-03
Last Modified: 2008-11-24
Hi Friends,

I am working on a very big project using PHP.  The database can change from client to client like MySQL, Oracle etc. It will be very helpful if you could give some good info on Database Abstraction Layers for PHP. There are many available on net, the two I shortlisted is Pear MDB2 and AdoDB. I think AdoDB is better. Any ideas/suggestions is highly appreciated.

Question by:kiranvj
  • 2
  • 2
LVL 16

Accepted Solution

alain34 earned 175 total points
ID: 22865523
Hello kiranvj,

Have you had a look here to help you decide


LVL 16

Expert Comment

ID: 22865525
Forgot to say. I personally use AdoDB.
LVL 11

Assisted Solution

NoiS earned 175 total points
ID: 22866798
I recomend One of these (I tested a lot of Classes...)

Pear MDB2

In this order.

If you will work only with MySQL or Postgre, PDO is the best choice (my decision).

If you will work with Oracle too, Maybe PDO isn´t the good choice cause PDO don't work will REF Cursos (usually returned by Stored Procedures) but works great for all other functionality.
LVL 16

Author Comment

ID: 23032913
Thank you for the suggestions
LVL 16

Author Comment

ID: 23032915
I think I will go with ADODB

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question