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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...