-2

I have been reading through a few articles on PDO and they seem to say switch over, MySQLi is outdated, etc.

It does look good, you can use lots of different types of SQL servers and still use the same functions. Better OO emphasis.

Below are a couple of the articles I read.

Your MySQL Code Sucks.

Why you Should be using PHP’s PDO for Database Access

What is the general consensus on here?

Dharman
  • 30,962
  • 25
  • 85
  • 135
Max Rose-Collins
  • 1,904
  • 5
  • 26
  • 45

1 Answers1

0

If you think there is a remote possibility you will need to use a different DB backend, then use PDO. If you know you will only be using MySQL and already know how to use it, or have a good library to wrap the mysqli_*() class of functions, just use that.

Kenny Linsky
  • 1,726
  • 3
  • 17
  • 41
deed02392
  • 4,799
  • 2
  • 31
  • 48