+ 1

Which method is is good for me as a beginner to connect a to a database, POO or MySQLi?

I already have some basics in PHP and SQL so I want to create a connection with a database using PHP

10th Mar 2018, 2:58 PM
Marien Mupenda
Marien Mupenda - avatar
1 Respuesta
+ 7
mysqli was developed as a better interface to what was mysql interface, which is now deprecated, it is used primarily for MySQL data manipulation, AFAIK mysqli doesn't have any support for other DBMS systems. PDO on the other hand was developed to work with other DBMS systems, IIRC around a dozen of them is supported. So if there is a chance that you will be using other DBMS other than MySQL you might want to consider PDO, and if you're sure MySQL is the only DBMS used, you can use mysqli just as good. P.S. Try to search the web for comparison of these two if you need a second opinion, I guess you can have more to your consideration. Good luck : )
10th Mar 2018, 4:02 PM
Ipang