downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.db2-cursor-type.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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-cursor-type.php',
   
1 => 'db2_cursor_type',
  ),
 
'up' =>
  array (
   
0 => 'ref.ibm-db2.php',
   
1 => 'IBM DB2 Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.db2-connect.php',
   
1 => 'db2_connect',
  ),
 
'next' =>
  array (
   
0 => 'function.db2-escape-string.php',
   
1 => 'db2_escape_string',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.db2-cursor-type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_cursor_type</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_cursor_type</span> &mdash; <span class="dc-title">
   Returns the cursor type used by a statement resource
  </span></p>

 </div>
 <a name="function.db2-cursor-type.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><b>db2_cursor_type</b></span>
    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$stmt</tt></span>
   )</div>


  <p class="para rdfs-comment">
   Returns the cursor type used by a statement resource. Use this to determine
   if you are working with a forward-only cursor or scrollable cursor.
  </p>

 </div>

 <a name="function.db2-cursor-type.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">stmt</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       A valid statement resource.
      </p>
     </dd>

   
   </dl>
<p>
  </p>
 </div>

 <a name="function.db2-cursor-type.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns either <i>DB2_FORWARD_ONLY</i> if the statement
   resource uses a forward-only cursor or <i>DB2_SCROLLABLE</i> if
   the statement resource uses a scrollable cursor.
  </p>
 </div>


 

 <a name="function.db2-cursor-type.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="function.db2-prepare.php" class="function" rel="rdfs-seeAlso">db2_prepare()</a> - Prepares an SQL statement to be executed</li>
   </ul><p>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites