Writing Better PHP And Save Time — Part 2
On the previous story i introduced you on some way to program in PHP instead of the old ways, now let’s continue with the infamous “mysqli” or even worse “mysql” functions.
Not only did development stop long ago on mysql, but it was deprecated as of PHP 5.5.0, and has been officially removed in PHP 7.0. — https://phptherightway.com/#databases
Modernizing Database Development
The infamous old way:
<?php
// Example of old style, bad mysql db access
$host =…