note 82705 deleted from pdo.error-handling by googleguy
| From: | googleguy@php.net | Date: | Mon, 22 Oct 2012 08:15:00 +0000 |
| Subject: | note 82705 deleted from pdo.error-handling by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191474@lists.php.net to get a copy of this message | ||
Note Submitter: radical
----
For your convenience, here's an example of how to set the error handling:
<?php
$dbh = new PDO( /* your connection string */ );
$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
// . . .
?>