When you are using a MySQL database with your PHP, you need to create a connection between the PHP and the MySQL programs.
A PDO connection is the best way to do this.
This tutorial covers how to create a database and user through PHPMyAdmin and then to connect to the database from a PHP page.
webpage Code GIST: gist.github.com/prof3ssorSt3v...
connection page Code GIST:
2 июн 2018