mysql:database_api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql:database_api [2016/10/13 15:53] – peter | mysql:database_api [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MySQL - Database API ====== | ====== MySQL - Database API ====== | ||
+ | |||
+ | PHP offers three different APIs to connect to MySQL. | ||
===== Choosing an API ===== | ===== Choosing an API ===== | ||
Line 29: | Line 31: | ||
It is recommended to use either the PDO_MySQL or mysqli extensions. | It is recommended to use either the PDO_MySQL or mysqli extensions. | ||
+ | |||
+ | PDO has the advantage that you only need to learn one PHP API if you need to work with different DBMS in the future. | ||
+ | |||
+ | MySQLi is more powerful and probably more complex to learn. | ||
mysql/database_api.1476373989.txt.gz · Last modified: 2020/07/15 09:30 (external edit)