PHP MYSQL CONNECT PDO
I will show here, how to create simple connection with mysql using PDO PHP 7
PHP supports several databases natively through the PDO or through third party libraries.
The simplest way is to use the PDO to connect to the database.
$connection = new PDO(“mysql:dbname=banco;host=localhost”, “user”,”passwd”);
Shortly after we pass connection attributes
Now we have MYSQL connection made
TEST $test = $connection->query(“select * from test”);
I hope I have helped beginners.