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.
- ( deleted ) are procedural and are using the escape manual.
- With object-oriented and proactive versions, there is a replacement for the mysql function. There is support for the prepared statement in it.
- (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
Post a Comment