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
You should use this:
return $exception->getMessage();
See the page on the documentation of Exception class:
http://www.php.net/manual/en/exception.getmessage.php