Do I need to use the try and catch block to display errors with PHP\'s PDO extension?
For example, with mysql you can usally do something like:
if ( ! $q
If you don't want to use a try catch statement, you still can use this kind of code :
$query = $db->prepare("SELECT * FROM table"); if(!$query->execute()) { print_r($query->errorInfo()); }