Still trying to get my head around pdo.
I have an insert statement that is executed with pdo. insert works great however if there is an error I would like it displayed t
By default PDO is not in a state that will display errors. you need to provide the following in your DB connection
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
More info can be seen Here