PDO not throwing any exceptions

PDO not throwing any exceptions

If you want pdo to thow exception so that you can see what is going on kinda thing.. you can add the following parameter when you instantiate PDO just next to the password part of the pdo

array(PDO::ATTR_EMULATE_PREPARES => false, 
                                                                                                PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)

**Note: This is not the best way to handle exception by any means!!

Unicode error using PDO. Mysql Unicode problem

Bash directories coloring lost in unix when using ls

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*