Re: Re : Problem with PDO exceptions

From: Date: Mon, 09 Mar 2009 10:54:49 +0000
Subject: Re: Re : Problem with PDO exceptions
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46060@lists.php.net to get a copy of this message
Neil Smith [MVP, Digital media] wrote:
When you create your DB connection $db, follow the connection line directly after with this : $db->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION); The default is I believe PDO::ERRMODE_SILENT which is confusing to most people the first time.
Thanks! It works now. Cheers, Daniel.

« previous php.db (#46060) next »