<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ibm-db2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.db2-execute.php',
    1 => 'db2_execute',
    2 => 'Executes a prepared SQL statement',
  ),
  'up' => 
  array (
    0 => 'ref.ibm-db2.php',
    1 => 'IBM DB2 Functions',
  ),
  'prev' => 
  array (
    0 => 'function.db2-exec.php',
    1 => 'db2_exec',
  ),
  'next' => 
  array (
    0 => 'function.db2-fetch-array.php',
    1 => 'db2_fetch_array',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ibm_db2/functions/db2-execute.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.db2-execute" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_execute</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_execute</span> &mdash; <span class="dc-title">
   Executes a prepared SQL statement
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.db2-execute-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>db2_execute</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$stmt</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$parameters</code><span class="initializer"> = []</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>



  <p class="simpara">
   <span class="function"><strong>db2_execute()</strong></span> executes an SQL statement that was
   prepared by <span class="function"><a href="function.db2-prepare.php" class="function">db2_prepare()</a></span>.
  </p>
  <p class="simpara">
   If the SQL statement returns a result set, for example, a SELECT statement
   or a CALL to a stored procedure that returns one or more result sets, you
   can retrieve a row as an array from the <code class="literal">stmt</code> resource
   using <span class="function"><a href="function.db2-fetch-assoc.php" class="function">db2_fetch_assoc()</a></span>,
   <span class="function"><a href="function.db2-fetch-both.php" class="function">db2_fetch_both()</a></span>, or
   <span class="function"><a href="function.db2-fetch-array.php" class="function">db2_fetch_array()</a></span>. Alternatively, you can use
   <span class="function"><a href="function.db2-fetch-row.php" class="function">db2_fetch_row()</a></span> to move the result set pointer to the
   next row and fetch a column at a time from that row with
   <span class="function"><a href="function.db2-result.php" class="function">db2_result()</a></span>.
  </p>
  <p class="simpara">
   Refer to <span class="function"><a href="function.db2-prepare.php" class="function">db2_prepare()</a></span> for a brief discussion of the
   advantages of using <span class="function"><a href="function.db2-prepare.php" class="function">db2_prepare()</a></span> and
   <span class="function"><strong>db2_execute()</strong></span> rather than <span class="function"><a href="function.db2-exec.php" class="function">db2_exec()</a></span>.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.db2-execute-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">stmt</code></dt>
    <dd>
     <span class="simpara">
      A prepared statement returned from <span class="function"><a href="function.db2-prepare.php" class="function">db2_prepare()</a></span>.
     </span>
    </dd>
   
   
    <dt><code class="parameter">parameters</code></dt>
    <dd>
     <span class="simpara">
      An array of input parameters matching any parameter markers contained
      in the prepared statement.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.db2-execute-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.db2-execute-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 Preparing and executing an SQL statement with parameter markers</strong></p>
    <div class="example-contents"><p>
     The following example prepares an INSERT statement that accepts four
     parameter markers, then iterates over an array of arrays containing the
     input values to be passed to <span class="function"><strong>db2_execute()</strong></span>.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$pet </span><span style="color: #007700">= array(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #DD0000">'cat'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Pook'</span><span style="color: #007700">, </span><span style="color: #0000BB">3.2</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$insert </span><span style="color: #007700">= </span><span style="color: #DD0000">'INSERT INTO animals (id, breed, name, weight)<br />    VALUES (?, ?, ?, ?)'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #0000BB">$insert</span><span style="color: #007700">);<br />if (</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">, </span><span style="color: #0000BB">$pet</span><span style="color: #007700">);<br />    if (</span><span style="color: #0000BB">$result</span><span style="color: #007700">) {<br />        print </span><span style="color: #DD0000">"Successfully added new pet."</span><span style="color: #007700">;<br />    }<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Successfully added new pet.</pre>
</div>
    </div>
   </div>
   <div class="example" id="example-2">
    <p><strong>Example #2 Calling a stored procedure with an OUT parameter</strong></p>
    <div class="example-contents"><p>
     The following example prepares a CALL statement that accepts one
     parameter marker representing an OUT parameter, binds the PHP variable
     <code class="literal">$my_pets</code> to the parameter using
     <span class="function"><a href="function.db2-bind-param.php" class="function">db2_bind_param()</a></span>, then issues
     <span class="function"><strong>db2_execute()</strong></span> to execute the CALL statement. After the
     CALL to the stored procedure has been made, the value of
     <code class="literal">$num_pets</code> changes to reflect the value returned by the
     stored procedure for that OUT parameter.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$num_pets </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$res </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #DD0000">"CALL count_my_pets(?)"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$rc </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_bind_param</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #DD0000">"num_pets"</span><span style="color: #007700">, </span><span style="color: #0000BB">DB2_PARAM_OUT</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$rc </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">);<br />print </span><span style="color: #DD0000">"I have </span><span style="color: #0000BB">$num_pets</span><span style="color: #DD0000"> pets!"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">I have 7 pets!</pre>
</div>
    </div>
   </div>
   <div class="example" id="example-3">
    <p><strong>Example #3 Returning XML data as an SQL ResultSet</strong></p>
    <div class="example-contents"><p>
     The following example demonstrates how to work with documents stored
     in a XML column using the SAMPLE database. Using some pretty simple
     SQL/XML, this example returns some of the nodes in a XML document in
     an SQL ResultSet format that most users are familiar with.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$conn </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"SAMPLE"</span><span style="color: #007700">, </span><span style="color: #DD0000">"db2inst1"</span><span style="color: #007700">, </span><span style="color: #DD0000">"ibmdb2"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$query </span><span style="color: #007700">= </span><span style="color: #DD0000">'SELECT * FROM XMLTABLE(<br />    XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br />    \'db2-fn:xmlcolumn("CUSTOMER.INFO")/customerinfo\'<br />    COLUMNS<br />    "CID" VARCHAR (50) PATH \'@Cid\',<br />    "NAME" VARCHAR (50) PATH \'name\',<br />    "PHONE" VARCHAR (50) PATH \'phone [ @type = "work"]\'<br />    ) AS T<br />    WHERE NAME = ?<br />    '</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$name </span><span style="color: #007700">= </span><span style="color: #DD0000">'Kathy Smith'</span><span style="color: #007700">;<br /><br />if (</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">db2_bind_param</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #DD0000">"name"</span><span style="color: #007700">, </span><span style="color: #0000BB">DB2_PARAM_IN</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">db2_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br /><br />    while(</span><span style="color: #0000BB">$row </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_fetch_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">)){<br />    </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">CID</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">NAME</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">PHONE</span><span style="color: #DD0000">\n"</span><span style="color: #007700">);<br />    }<br />}<br /></span><span style="color: #0000BB">db2_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">1000     Kathy Smith     416-555-1358
1001     Kathy Smith     905-555-7258</pre>
</div>
    </div>
   </div>
   <div class="example" id="example-4">
    <p><strong>Example #4 Performing a &quot;JOIN&quot; with XML data</strong></p>
    <div class="example-contents"><p>
     The following example works with documents stored in 2 different
     XML columns in the SAMPLE database. It creates 2 temporary
     tables from the XML documents from 2 different columns and
     returns an SQL ResultSet with information regarding shipping
     status for the customer.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$conn </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"SAMPLE"</span><span style="color: #007700">, </span><span style="color: #DD0000">"db2inst1"</span><span style="color: #007700">, </span><span style="color: #DD0000">"ibmdb2"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$query </span><span style="color: #007700">= </span><span style="color: #DD0000">'<br />SELECT A.CID, A.NAME, A.PHONE, C.PONUM, C.STATUS<br />FROM<br />XMLTABLE(<br />XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br />\'db2-fn:xmlcolumn("CUSTOMER.INFO")/customerinfo\'<br />COLUMNS<br />"CID" BIGINT PATH \'@Cid\',<br />"NAME" VARCHAR (50) PATH \'name\',<br />"PHONE" VARCHAR (50) PATH \'phone [ @type = "work"]\'<br />) as A,<br />PURCHASEORDER AS B,<br />XMLTABLE (<br />XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br />\'db2-fn:xmlcolumn("PURCHASEORDER.PORDER")/PurchaseOrder\'<br />COLUMNS<br />"PONUM"  BIGINT PATH \'@PoNum\',<br />"STATUS" VARCHAR (50) PATH \'@Status\'<br />) as C<br />WHERE A.CID = B.CUSTID AND<br />    B.POID = C.PONUM AND<br />    A.NAME = ?<br />'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$name </span><span style="color: #007700">= </span><span style="color: #DD0000">'Kathy Smith'</span><span style="color: #007700">;<br /><br />if (</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">db2_bind_param</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #DD0000">"name"</span><span style="color: #007700">, </span><span style="color: #0000BB">DB2_PARAM_IN</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">db2_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br /><br />    while(</span><span style="color: #0000BB">$row </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_fetch_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">)){<br />    </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">CID</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">NAME</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">PHONE</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">PONUM</span><span style="color: #DD0000">     </span><span style="color: #0000BB">$row</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">STATUS</span><span style="color: #DD0000">\n"</span><span style="color: #007700">);<br />    }<br />}<br /><br /></span><span style="color: #0000BB">db2_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">1001     Kathy Smith     905-555-7258     5002     Shipped</pre>
</div>
    </div>
   </div>
   <div class="example" id="example-5">
    <p><strong>Example #5 Returning SQL data as part of a larger XML document</strong></p>
    <div class="example-contents"><p>
     The following example works with a portion of the PRODUCT.DESCRIPTION
     documents in the SAMPLE database. It creates a XML document containing
     product description (XML data) and pricing info (SQL data).
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$conn </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"SAMPLE"</span><span style="color: #007700">, </span><span style="color: #DD0000">"db2inst1"</span><span style="color: #007700">, </span><span style="color: #DD0000">"ibmdb2"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$query </span><span style="color: #007700">= </span><span style="color: #DD0000">'<br />SELECT<br />XMLSERIALIZE(<br />XMLQUERY(\'<br />    declare boundary-space strip;<br />    declare default element namespace "http://posample.org";<br />    &lt;promoList&gt; {<br />    for $prod in $doc/product<br />    where $prod/description/price &lt; 10.00<br />    order by $prod/description/price ascending<br />    return(<br />        &lt;promoitem&gt; {<br />        $prod,<br />        &lt;startdate&gt; {$start} &lt;/startdate&gt;,<br />        &lt;enddate&gt; {$end} &lt;/enddate&gt;,<br />        &lt;promoprice&gt; {$promo} &lt;/promoprice&gt;<br />            } &lt;/promoitem&gt;<br />    )<br />    } &lt;/promoList&gt;<br />\' passing by ref DESCRIPTION AS "doc",<br />PROMOSTART as "start",<br />PROMOEND as "end",<br />PROMOPRICE as "promo"<br />RETURNING SEQUENCE)<br />AS CLOB (32000))<br />AS NEW_PRODUCT_INFO<br />FROM PRODUCT<br />WHERE PID = ?<br />'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$pid </span><span style="color: #007700">= </span><span style="color: #DD0000">"100-100-01"</span><span style="color: #007700">;<br /><br />if (</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">db2_bind_param</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #DD0000">"pid"</span><span style="color: #007700">, </span><span style="color: #0000BB">DB2_PARAM_IN</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">db2_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br /><br />    while(</span><span style="color: #0000BB">$row </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">)){<br />    </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$row</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]</span><span style="color: #DD0000">\n"</span><span style="color: #007700">);<br />    }<br />}<br /><br /></span><span style="color: #0000BB">db2_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">&lt;promoList xmlns=&quot;http://posample.org&quot;&gt;
    &lt;promoitem&gt;
    &lt;product pid=&quot;100-100-01&quot;&gt;
        &lt;description&gt;
            &lt;name&gt;Snow Shovel, Basic 22 inch&lt;/name&gt;
            &lt;details&gt;Basic Snow Shovel, 22 inches wide, straight handle with D-Grip&lt;/details&gt;
            &lt;price&gt;9.99&lt;/price&gt;
            &lt;weight&gt;1 kg&lt;/weight&gt;
        &lt;/description&gt;
    &lt;/product&gt;
    &lt;startdate&gt;2004-11-19&lt;/startdate&gt;
    &lt;enddate&gt;2004-12-19&lt;/enddate&gt;
    &lt;promoprice&gt;7.25&lt;/promoprice&gt;
    &lt;/promoitem&gt;
&lt;/promoList&gt;</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.db2-execute-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.db2-exec.php" class="function" rel="rdfs-seeAlso">db2_exec()</a> - Executes an SQL statement directly</span></li>
   <li><span class="function"><a href="function.db2-fetch-array.php" class="function" rel="rdfs-seeAlso">db2_fetch_array()</a> - Returns an array, indexed by column position, representing a row in a result set</span></li>
   <li><span class="function"><a href="function.db2-fetch-assoc.php" class="function" rel="rdfs-seeAlso">db2_fetch_assoc()</a> - Returns an array, indexed by column name, representing a row in a result set</span></li>
   <li><span class="function"><a href="function.db2-fetch-both.php" class="function" rel="rdfs-seeAlso">db2_fetch_both()</a> - Returns an array, indexed by both column name and position, representing a row in a result set</span></li>
   <li><span class="function"><a href="function.db2-fetch-row.php" class="function" rel="rdfs-seeAlso">db2_fetch_row()</a> - Sets the result set pointer to the next row or requested row</span></li>
   <li><span class="function"><a href="function.db2-prepare.php" class="function" rel="rdfs-seeAlso">db2_prepare()</a> - Prepares an SQL statement to be executed</span></li>
   <li><span class="function"><a href="function.db2-result.php" class="function" rel="rdfs-seeAlso">db2_result()</a> - Returns a single column from a row in the result set</span></li>
  </ul>
 </div>



</div><?php manual_footer($setup); ?>