Jump to content

PHP > MySQLi > Is it depreciated?


Recommended Posts

Hello all.


I have come here to the source of web standards to understand PHP and the API's it uses to access databases.


From my reading (why yes, I do know how to use google :) ) it seems both MySQLi and PDO are acceptable methods. Other than the boatload of "experts" on various forums and blogs shouting that MySQLi is depreciated, is there any real indication that it is?


Now I don't want to start a MySQLi Vs PDO thread. I just want to know if MySQLi is still an acceptable API to use

Link to comment
Share on other sites

It's acceptable to use MySQLi. PDO is just newer and probably better. The original MySQL library for PHP is deprecated because it doesn't have support for prepared statements, transactions or other features.


The page you linked to has a good breakdown of the features, which is what you should consider when choosing an API for your project.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...