CVS update: php3/doc/functions
| From: | thies | Date: | Fri, 19 Feb 1999 16:17:30 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4161@lists.php.net to get a copy of this message | ||
Date: Friday February 19, 1999 @ 11:17
Author: thies
Update of /repository/php3/doc/functions
In directory asf:/u/temp/cvs-serv3352/functions
Modified Files:
oci8.sgml
Log Message:
starting the OCI8-Documentation
Index: php3/doc/functions/oci8.sgml
diff -c php3/doc/functions/oci8.sgml:1.1 php3/doc/functions/oci8.sgml:1.2
*** php3/doc/functions/oci8.sgml:1.1 Fri Oct 23 07:39:08 1998
--- php3/doc/functions/oci8.sgml Fri Feb 19 11:17:30 1999
***************
*** 6,11 ****
--- 6,12 ----
<!--
OCIBindByName
+ OCIDefineByName
OCIColumnIsNULL
OCIColumnName
OCIColumnSize
***************
*** 16,33 ****
OCIInternalDebug
OCILogoff
OCILogon
OCINumCols
OCIParse
OCIResult
OCIServerVersion
OCIStatementType
-
-->
<refentry id="function.ocibindbyname">
<refnamediv>
<refname>OCIBindByName</refname>
! <refpurpose></refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
--- 17,66 ----
OCIInternalDebug
OCILogoff
OCILogon
+ OCIError
+ OCIFreeDesc
+ OCILoadDesc
+ OCICommit
+ OCIRollback
+ OCINewDescriptor
+ OCIRowCount
OCINumCols
OCIParse
OCIResult
OCIServerVersion
OCIStatementType
-->
+ <refentry id="function.ocidefinebyname">
+ <refnamediv>
+ <refname>OCIDefineByName</refname>
+ <refpurpose>Use a PHP variable for the define-step during a SELECT</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>int <function>OCIDefineByName</function></funcdef>
+ <paramdef>int <parameter>stmt</parameter></paramdef>
+ <paramdef>string <parameter>Column-Name</parameter></paramdef>
+ <paramdef>mixed &<parameter>variable</parameter></paramdef>
+ <paramdef>int
<parameter><optional>type</optional></parameter></paramdef>
+ </funcsynopsis>
+ <para>
+ <function>OCIDefineByName</function> uses fetches SQL-Columns into user-defined
+ PHP-Variables.
+ </para>
+ <para>
+ If you need to define an abstract Datatype (LOB/ROWID/BFILE) you need to allocate it first
+ using <function>OCINewDescriptor</function> function. See also the
<function>OCIBindByName</function>
+ function.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.ocibindbyname">
<refnamediv>
<refname>OCIBindByName</refname>
! <refpurpose>Bind a PHP variable to an Oracle Placeholder</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
***************
*** 36,48 ****
<paramdef>int <parameter>stmt</parameter></paramdef>
<paramdef>string <parameter>ph_name</parameter></paramdef>
<paramdef>mixed &<parameter>variable</parameter></paramdef>
</funcsynopsis>
<para>
<function>OCIBindByName</function> binds the PHP variable
<parameter>variable</parameter> to the Oracle placeholder
<parameter>ph_name</parameter>. Whether it will be used for
input or output will be determined run-time, and the necessary
! storage space will be allocated.
</para>
</refsect1>
</refentry>
--- 69,94 ----
<paramdef>int <parameter>stmt</parameter></paramdef>
<paramdef>string <parameter>ph_name</parameter></paramdef>
<paramdef>mixed &<parameter>variable</parameter></paramdef>
+ <paramdef>int<parameter>length</parameter></paramdef>
+ <paramdef>int
<parameter><optional>type</optional></parameter></paramdef>
</funcsynopsis>
<para>
<function>OCIBindByName</function> binds the PHP variable
<parameter>variable</parameter> to the Oracle placeholder
<parameter>ph_name</parameter>. Whether it will be used for
input or output will be determined run-time, and the necessary
! storage space will be allocated. The <parameter>length</parameter>
! paramter sets the maximum length for the bind. If you set
<parameter>length</parameter>
! to -1 <function>OCIBindByName</function> will use the current length of
! <parameter>variable</parameter> to set the maximum length.
! </para>
! <para>
! If you need to bind an abstract Datatype (LOB/ROWID/BFILE) you need to allocate it first
! using <function>OCINewDescriptor</function> function. The
<parameter>length</parameter>
! is not used for abstract Datatypes and should be set to -1. The
<paramter>type</parameter>
! variable tells oracle, what kind of descriptor we want to use. Possible values are:
! SQLT_BFILEE (Binary-File), SQLT_CFILEE (Character-File), SQLT_CLOB (Character-LOB), SQLT_BLOB
! (Binary-LOB) and SQLT_RDD (ROWID).
</para>
</refsect1>
</refentry>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net