PDO or mysqli. which one to choose.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

PDO or mysqli. which one to choose.

Post by jmut »

Hi,
I have been using PEAR::DB for quite some time but I think it is time to think of something else.
PEAR::DB is no more supported, it is slow etc etc.

I use generally mysql DB using PHP5.

I see both PDO and mysqli are C implemetented and think it is better to consider them. I see PDO
is kind of buggy yet and I am stuck on mysqli now.
What is your pros cons over using one instead of the other. Maybe some other solution?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Both are fine, and neither would be a bad choice. PDO seems to be where PHP is heading, and it does give you a standard interface to, for example, MySQL and SQLite which you might use together.
(#10850)
Post Reply