You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/07-02-01-Databases_MySQL.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ The [mysql] extension for PHP is incredibly old and has been superseded by two o
11
11
-[mysqli]
12
12
-[pdo]
13
13
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]**.
16
16
17
17
To save digging into your `php.ini` settings to see which module you are using, one option is to search for `mysql_*`
18
18
in your editor of choice. If any functions such as `mysql_connect()` and `mysql_query()` show up, then `mysql` is
19
19
in use.
20
20
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
23
23
your applications within your own development schedules so you won't be rushed later on.
24
24
25
25
**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
0 commit comments