CVS update: php3/doc/functions
| From: | eschmid | Date: | Thu, 17 Sep 1998 20:13:39 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1207@lists.php.net to get a copy of this message | ||
Date: Thursday September 17, 1998 @ 16:13
Author: eschmid
Update of /repository/php3/doc/functions
In directory asf:/u2/tmp/cvs-serv3722
Modified Files:
ifx.sgml
Log Message:
The next one...
Index: php3/doc/functions/ifx.sgml
diff -c php3/doc/functions/ifx.sgml:1.2 php3/doc/functions/ifx.sgml:1.3
*** php3/doc/functions/ifx.sgml:1.2 Thu Sep 17 15:24:26 1998
--- php3/doc/functions/ifx.sgml Thu Sep 17 16:13:37 1998
***************
*** 188,194 ****
the function tries to establish a link as if
<function>ifx_connect</function> was called, and use it.
</para><para>
! Executes query <parameter>query</parameter> on connection
<parameter>conn_id</parameter>. For "select-type" queries a cursor
is declared and opened. The optional "HOLD" and "SCROLL"
parameters allow you to make this a "scroll" and/or "hold"
--- 188,194 ----
the function tries to establish a link as if
<function>ifx_connect</function> was called, and use it.
</para><para>
! Executes <parameter>query</parameter> on connection
<parameter>conn_id</parameter>. For "select-type" queries a cursor
is declared and opened. The optional "HOLD" and "SCROLL"
parameters allow you to make this a "scroll" and/or "hold"
***************
*** 253,258 ****
--- 253,308 ----
</refsect1>
</refentry>
+ <refentry id="function.ifx-prepare">
+ <refnamediv>
+ <refname>ifx_prepare</refname>
+ <refpurpose>Prepare an SQL-statement for execution</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>int <function>ifx_prepare</function></funcdef>
+ <paramdef>string <parameter>query</parameter></paramdef>
+ <paramdef>int <parameter>conn_id</parameter></paramdef>
+ <paramdef>string
<parameter><optional>cursor_def</optional></parameter></paramdef>
+ <paramdef>mixed <parameter>blobidarray</parameter></paramdef>
+ </funcsynopsis>
+ <para>
+ Returns a integer <parameter>result_id</parameter> for use by
+ <function>ifx_do</function>. Sets
+ <parameter>affected_rows</parameter> for retrieval by the
+ <function>ifx_affected_rows</function> function.
+ </para><para>
+ Prepares <parameter>query</parameter> on connection
+ <parameter>conn_id</parameter>. For "select-type" queries a
+ cursor is declared and opened. The optional "HOLD" and "SCROLL"
+ parameters allow you to make this a "scroll" and/or "hold"
+ cursor.
+ </para><para>
+ For either query type the estimated number of affected rows is
+ saved for retrieval by <function>ifx_affected_rows</function>.
+ </para><para>
+ If you have BLOB (BYTE or TEXT) columns in the query, you can add
+ a <parameter>blobidarray</parameter> parameter containing the
+ corresponding "blob ids", and you should replace those columns
+ with a "?" in the query text.
+ </para><para>
+ If the contents of the TEXT (or BYTE) column allow it, you can
+ also use "ifx_textasvarchar(1)" and "ifx_byteasvarchar(1)". This
+ allows you to treat TEXT (or BYTE) columns just as if they were
+ ordinary (but long) VARCHAR columns for select queries, and you
+ don't need to bother with blob id's.
+ </para><para>
+ With ifx_textasvarchar(0) or ifx_byteasvarchar(0) (the default
+ situation), select queries will return BLOB columns as blob id's
+ (integer value). You can get the value of the blob as a string
+ or file with the blob functions (see below).
+ </para><para>
+ See also: <function>ifx_do</function>.
+ </refsect1>
+ </refentry>
+
+
<!--
<refentry id="function.ifx-result">
<refnamediv>
***************
*** 404,425 ****
</refsect1>
</refentry>
- <refentry id="function.ifx-prepare">
- <refnamediv>
- <refname>ifx_prepare</refname>
- <refpurpose>to prepare an SQL-statement for execution</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcdef><function>ifx_prepare</function></funcdef>
- <paramdef><parameter></parameter></paramdef>
- </funcsynopsis>
- <para>
- <para>
- See also: <function>ifx_do</function>.
- </refsect1>
- </refentry>
<refentry id="function.ifx-do">
<refnamediv>
--- 454,459 ----
--
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