note 59353 added to function.pdostatement-setattribute
| From: | MatthiasLeuffen at osu1 dot php dot net | Date: | Sun, 04 Dec 2005 09:00:51 +0000 |
| Subject: | note 59353 added to function.pdostatement-setattribute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99545@lists.php.net to get a copy of this message | ||
Hi together,
some information on PDO-Relevant constants from PHP5.1: You'll find them as class-constants of
class PDO by now.
For Example:
$pdo = new PDO (whatever);
$pdo->setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
will work (and no more using the global constants PDO_*)
May help somebody who didn't read the changelog carefully enought ;-)
Bye,
Matthias
----
Manual Page -- http://www.php.net/manual/en/function.pdostatement-setattribute.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59353
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59353&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59353&report=yes
Search -- http://master.php.net/manage/user-notes.php