<?php
try
{
$pdo = new PDO('mysql:host=127.0.0.1;dbname=sitetest1', 'root', '');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
die("Critical Error: ".$e->getMessage());