note 52059 added to function.pdostatement-fetch
| From: | johnl at stihealthcare dot com | Date: | Wed, 20 Apr 2005 11:07:15 +0000 |
| Subject: | note 52059 added to function.pdostatement-fetch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88250@lists.php.net to get a copy of this message | ||
For binary data query (bytea data type in Pg) -
$stmt = $db->prepare( "SELECT data_blob FROM docdatablob WHERE msgid = :id" );
$id = 22222;
$stmt->bindParam( ":id", $id );
$stmt->execute();
$row = $stmt->fetch();
print_r($row);
returns -
( [data_blob] => Resource id #2 [0] => Resource id #2 )
Is this a bug?
----
Manual Page -- http://www.php.net/manual/en/function.pdostatement-fetch.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52059
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52059&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52059&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52059&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52059&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52059&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52059&report=yes
Search -- http://master.php.net/manage/user-notes.php