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:


// Example of old style, bad mysql db access
$host =…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store