Thursday, September 5, 2019

MySQL vs MySQLi when using PHP




Which is better, MySQL or MySQLi? And why? Which should I use?




I mean better not just in terms of performance, but any other relevant feature.


Answer



If you have a look at MySQL Improved Extension Overview, it should tell you everything you need to know about the differences between the two.



The main useful features are:




  • an Object-oriented interface

  • support for prepared statements

  • support for multiple statements


  • support for transactions

  • enhanced debugging capabilities

  • embedded server support.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...