2

Possible Duplicate:
mysqli or PDO - what are the pros and cons?

I got something working using MySQLi, but I'm reading everywhere that PDO is superior, however, so far, the most important thing is the possibility to connect to other type of databases and not only to MySQL.

Do you know of any other advantage of using PDO over MySQLi ?

Thanks.

Community
  • 1
  • 1
Artemix
  • 8,497
  • 14
  • 48
  • 75
  • It's just subjective API preferences, and the flexibility advantage you already mentioned. – mario Nov 29 '12 at 00:12

2 Answers2

2

As far as mySQL is concerned, they are more or less equivalent. It mostly boils down to what you are most familiar with.

Sammitch
  • 30,782
  • 7
  • 50
  • 77
1

This page compares the two:

http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/

Check out the pros and cons and decide for yourself based on your requirements.

RonaldBarzell
  • 3,822
  • 1
  • 16
  • 23