Update example_pdo.php

Added exception handling, removed die() to ensure all html / xml is output regardless of success