You are here: Re: PDO ,Lobs and fpassthru « PHP Programming Language « IT news, forums, messages
Re: PDO ,Lobs and fpassthru

Posted by Jerry Stuckle on 05/23/07 11:28

gezerpunta wrote:
> Hi
>
> I need to fetch lobs with php script. I found it but there is an
> error.
>
> $stmt = $db->prepare("select * from test where oid = 17056");
> $stmt->execute();
> $stmt->bindColumn('oid', $lob, PDO::PARAM_LOB);
> $stmt->fetch(PDO::FETCH_BOUND);
> echo $lob;
> fpassthru($lob);
>
> it returns
>
> ///////
> 17056
> Warning: fpassthru(): supplied argument is not a valid stream resource
> in /home/kkk/public_html/haxxxxxxxxx.php on line 20
> //////
>
> $lob returns an id but fpassthru doesn t execute with this id.
>
> Where is the wrong?
>
> thks
>

$lob is a resource id, but not the correct type. fpassthru() requires a
resource id created by fopen().

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация