Asked 7 years ago
11 Feb 2017
Views 1210
jessica

jessica posted

mysqli vs PDO

what is difference between mysqli and PDO in PHP ?
which one is best to use mysqli or PDO in PHP ?

i mostly used mysql extension , never used PDO and mysqli is extended version of mysql and PDO is already know good alternative of mysql extension . so which one is good or bad between mysqli or PDO ? what is pros and cons of mysqli and PDO so i can avoid problem of database related in advance
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

1. first of all mysqli specially designed for MySQL database connection with PHP,
PDO is database abstraction layer for PHP to connect with almost all type databases , so it is not for only MySQL but it will connect with other database like SQLite , Firebird .

Post Answer