MySQLI Vs PDO Comparison

MYSQLI PDO Difference
MySQLI vs PDO BANNER IMAGE

Currently recommended to use either the MySQLI or PDO extensions. It is not recommended to use the old MySQLI extension for new development, as it was deprecated in PHP 5.5.0 and was removed in PHP 7.

FeaturesMySQLI ExtentionPDO
PHP version introduced55.1
Development statusActiveActive
Database SupportOnly MySQL10+ Databases
Recommended for new projectsYesYes
OOP InterfaceYesYes
Procedural InterfaceYesNo
Persistent ConnectionsYesYes
API supports CharsetsYesYes
API supports server-side Prepared StatementsYesYes
API supports client-side Prepared StatementsNoYes
API supports Stored ProceduresYesYes
API supports Multiple StatementsYesYes
API supports TransactionsYesYes
Transactions can be controlled with SQLYesYes
Supports all MySQL 5.1+ functionalityYesMostly
MySQLI vs PDO COMPARSION TABLE

More Information