false, PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_ASSOC ]; try { $db = new PDO("mysql:host=".db_server.";dbname=".db_name.";charset=".db_charset,db_username,db_password,$options); } catch (PDOException $e) { die("Connection failed: " . $e->getMessage()); } ?>