GMD Posted July 9, 2010 Share Posted July 9, 2010 Using a PDO data object, even when the query fails, it never throws an exception(not even a generic one). Does anyone know why? try { $result = $this->db->query($sql); } catch(PDOException $e) { $this->exit_page('Database Errorrr', $e->getMessage()); } Link to comment https://forums.phpfreaks.com/topic/207295-pdoexception-not-working-in-trycatch/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.