CONNECT with PDo code example
Example 1: pdo db connection
<?php
$pdo = new PDO('mysql:host=localhost;dbname=databasename', 'username', 'password');
?>
Example 2: PDO connect
<?php
$db = new PDO('mysql:host=myhost;dbname=mydb', 'login', 'password');