Skip to content

Commit 1bb13df

Browse files
authored
Merge pull request #963 from petk/patch-mysql
Reword mysql extension chapter
2 parents 3a82872 + 4a3341d commit 1bb13df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

_posts/07-02-01-Databases_MySQL.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ The [mysql] extension for PHP is incredibly old and has been superseded by two o
1111
- [mysqli]
1212
- [pdo]
1313

14-
Not only did development stop long ago on [mysql], but it was [deprecated as of PHP 5.5.0]
15-
[mysql_deprecated], and **has been [officially removed in PHP 7.0][mysql_removed]**.
14+
Not only did development stop long ago on [mysql], but it
15+
**has been [officially removed in PHP 7.0][mysql_removed]**.
1616

1717
To save digging into your `php.ini` settings to see which module you are using, one option is to search for `mysql_*`
1818
in your editor of choice. If any functions such as `mysql_connect()` and `mysql_query()` show up, then `mysql` is
1919
in use.
2020

21-
Even if you are not using PHP 7.x yet, failing to consider this upgrade as soon as possible will lead to greater
22-
hardship when the PHP 7.x upgrade does come about. The best option is to replace mysql usage with [mysqli] or [PDO] in
21+
Even if you are not using PHP 7.x or later yet, failing to consider this upgrade as soon as possible will lead to greater
22+
hardship when the PHP upgrade does come about. The best option is to replace mysql usage with [mysqli] or [PDO] in
2323
your applications within your own development schedules so you won't be rushed later on.
2424

2525
**If you are upgrading from [mysql] to [mysqli], beware lazy upgrade guides that suggest you can simply find and replace `mysql_*` with `mysqli_*`. Not only is that a gross oversimplification, it misses out on the advantages that mysqli provides, such as parameter binding, which is also offered in [PDO][pdo].**
@@ -28,7 +28,6 @@ your applications within your own development schedules so you won't be rushed l
2828
* [PHP: Choosing an API for MySQL][mysql_api]
2929

3030
[mysql]: https://www.php.net/mysqli
31-
[mysql_deprecated]: https://www.php.net/migration55.deprecated
3231
[mysql_removed]: https://www.php.net/manual/migration70.removed-exts-sapis.php
3332
[mysqli]: https://www.php.net/mysqli
3433
[pdo]: https://www.php.net/pdo

0 commit comments

Comments
 (0)