php check pdo connection code example
Example: pdo db connection
<?php
$pdo = new PDO('mysql:host=localhost;dbname=databasename', 'username', 'password');
?>
<?php
$pdo = new PDO('mysql:host=localhost;dbname=databasename', 'username', 'password');
?>