setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { echo "Connection failed: " . $e->getMessage(); } ?>

Connection failed: Access denied for user 'Nickyting'@'localhost' (using password: YES)