<?php try { $db = new PDO("mysql:host=localhost;dbname=test", "root", "Şifren"); } catch ( PDOException $e ){ print $e->getMessage(); } ?>