Jump to content
Sign in to follow this  
TheAlmightyOS

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Thank you for the straight forward answer. I think I know how I am going to move forward on my project now. Thank you.

 

New here (obviously), is there a "solved" link or something I need to push?

Edited by TheAlmightyOS

Share this post


Link to post
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
Sign in to follow this  

×