abies Tue Sep 2 05:41:07 2003 EDT
Modified files:
/phpdoc/en/reference/ibase/functions ibase-blob-get.xml
Log:
Steal example from user notes
Index: phpdoc/en/reference/ibase/functions/ibase-blob-get.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.3
phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.4
--- phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.3 Mon Sep 1 19:49:57
2003
+++ phpdoc/en/reference/ibase/functions/ibase-blob-get.xml Tue Sep 2 05:41:07
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 -->
<refentry id='function.ibase-blob-get'>
<refnamediv>
@@ -19,6 +19,22 @@
This function returns at most <parameter>len</parameter> bytes from a BLOB
that has been opened for reading by <function>ibase_blob_open</function>.
Returns &false; on failure.
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+<?php
+ $sql = "SELECT blob_value FROM table";
+ $result = ibase_query( $sql );
+ $data = ibase_fetch_object( $result );
+ $blob_data = ibase_blob_info( $data->BLOB_VALUE );
+ $blob_hndl = ibase_blob_open( $data->BLOB_VALUE );
+ print ibase_blob_get( $blob_hndl, $blob_data[0] );
+?>
+]]>
+ </programlisting>
+ </informalexample>
+ Whilst this example doesn't do much more than a 'ibase_blob_echo(
$data->BLOB_VALUE )' would do,
+ it does show you how to get information into a $variable to manipulate as you
please.
</para>
<note>
<para>