note 82705 added to pdo.error-handling
| From: | radical at osu1 dot php dot net | Date: | Tue, 22 Apr 2008 19:45:17 +0000 |
| Subject: | note 82705 added to pdo.error-handling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138665@lists.php.net to get a copy of this message | ||
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 );
// . . .
?>
----
Server IP: 216.235.15.211
Probable Submitter: 68.150.148.38
----
Manual Page -- http://www.php.net/manual/en/pdo.error-handling.php
Edit -- https://master.php.net/note/edit/82705
Del: integrated -- https://master.php.net/note/delete/82705/integrated
Del: useless -- https://master.php.net/note/delete/82705/useless
Del: bad code -- https://master.php.net/note/delete/82705/bad+code
Del: spam -- https://master.php.net/note/delete/82705/spam
Del: non-english -- https://master.php.net/note/delete/82705/non-english
Del: in docs -- https://master.php.net/note/delete/82705/in+docs
Del: other reasons-- https://master.php.net/note/delete/82705
Reject -- https://master.php.net/note/reject/82705
Search -- https://master.php.net/manage/user-notes.php