Subject | Re: [firebird-php] Strange string from MEMO field in FireBird |
---|---|
Author | Lester Caine |
Post date | 2008-12-15T09:58:48Z |
masotti wrote:
In this case the blob_id was probably correct - just you need to USE it
to access the data in the blob. Which is what IBASE_TEXT is bypassing.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
> Hi all,Using ADOdb - I tend to forget about the inards ;)
>
> Jiri Cincura ha scritto:
>> On Sun, Dec 14, 2008 at 15:57, kamilwalas <kamilwalas85@...> wrote:
>>
>>> $row = ibase_fetch_assoc($qry);
>>>
>> IBASE_TEXT
>>
>
> Because Kamil says he is new to PHP, i'd try to explain better:
>
> $row = ibase_fetch_assoc($qry, IBASE_TEXT);
>
> This converts all BLOBs SUB TYPE TEXT in VARCHARs, so you don't need to
> fetch blobs writing more PHP code.
> This anyways fetches BLOBs, also when you aren't interested to (say
> particular conditions on other fields).
In this case the blob_id was probably correct - just you need to USE it
to access the data in the blob. Which is what IBASE_TEXT is bypassing.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php