Update 07-01-01-Databases.md

This commit is contained in:
Martin Olšanský
2014-08-09 22:00:25 +02:00
parent 90cdf53611
commit 8b794f84c4

View File

@@ -21,14 +21,14 @@ versions of PHP. This means you will be faced with a rewrite at some point down
replace mysql usage with [mysqli] or [PDO] in your applications within your own development schedules so you won't be replace mysql usage with [mysqli] or [PDO] in your applications within your own development schedules so you won't be
rushed later on. rushed later on.
**If you are starting from scratch then absolutely do not use the [mysql] extension: use the [MySQLi extension][mysqli], or use PDO.** **If you are starting from scratch then absolutely do not use the [mysql] extension: use the [MySQLi extension][mysqli], or use [PDO].**
* [PHP: Choosing an API for MySQL](http://php.net/manual/en/mysqlinfo.api.choosing.php) * [PHP: Choosing an API for MySQL](http://php.net/manual/en/mysqlinfo.api.choosing.php)
* [PDO Tutorial for MySQL Developers](http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers) * [PDO Tutorial for MySQL Developers](http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers)
## PDO Extension ## PDO Extension
PDO is a database connection abstraction library — built into PHP since 5.1.0 — that provides a common interface to talk with [PDO] is a database connection abstraction library — built into PHP since 5.1.0 — that provides a common interface to talk with
many different databases. For example, you can use basically identical code to interface with MySQL or SQLite: many different databases. For example, you can use basically identical code to interface with MySQL or SQLite:
{% highlight php %} {% highlight php %}