php - What is the difference between MySQL, MySQLi and PDO? -


What is the difference between MySQL, and?

Which PHP is most suitable to use with - MySQL?

PHP has three popular ways of using MySQL.

  1. ( deleted ) are procedural and are using the escape manual.
  2. With object-oriented and proactive versions, there is a replacement for the mysql function. There is support for the prepared statement in it.
  3. (PHP Data Objects) is a common database abstraction layer with the support of MySQL with another database. It gives a prepared statement, and how the data is returned provides significant flexibility.

I would recommend using PDOs with prepared statements. This is a well-designed API and if necessary you will be moved more easily in other databases (which supports support).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -