<?php
$user = 'Brain';
$pass = 'Bell';
$dsn = 'mysql:host=localhost;dbname=brainbell;charset=utf8';
$dbh = null;
try {
$dbh = new PDO ($dsn, $user, $password);
} catch (PDOException $e) {
echo 'Connection Failed: '.$e->getMessage();
exit;
}