Mysql (MariaDB) with PDO
From wikiluntti
Introduction
Some of my database stuff is shown.
Establishing connection to the server
Store the password into a secure place, thus outside the the www folder. Php can access that.
Log a user
SSL connection. MD5.
https://makitweb.com/login-page-with-remember-me-using-pdo-and-php/