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/internals2.pdo.constants.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/internals2.pdo.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'internals2.pdo.constants.php',
   
1 => 'Constants',
  ),
 
'up' =>
  array (
   
0 => 'internals2.pdo.php',
   
1 => 'PDO Driver How-To',
  ),
 
'prev' =>
  array (
   
0 => 'internals2.pdo.pdo-stmt-t.php',
   
1 => 'pdo_stmt_t definition',
  ),
 
'next' =>
  array (
   
0 => 'internals2.pdo.error-handling.php',
   
1 => 'Error handling',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="internals2.pdo.constants" class="sect1">
 <h2 class="title">Constants</h2>
 <table class="doctable table">
 <caption><b>Database and Statement Attributes Table</b></caption>
 
   <col align="left" width="3inch" />
   <col align="left" width="2.7inch" />
   <tbody valign="middle" class="tbody">
    <tr valign="middle">
     <td align="left">
      <p class="para">Attribute</p>
     </td>
     <td align="left">
      <p class="para">Valid value(s)</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_AUTOCOMMIT</p>
     </td>
     <td align="left">
      <p class="para">BOOL</p>
      <p class="para">TRUE if autocommit is set, FALSE otherwise. </p>
      <p class="para">dbh-&gt;auto_commit contains value. Processed by PDO directly.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_PREFETCH</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <p class="para">Value of the prefetch size in drivers that support it.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_TIMEOUT</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <p class="para">How long to wait for a db operation before timing out.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_ERRMODE</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <p class="para">Processed and handled by PDO</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_SERVER_VERSION</p>
     </td>
     <td align="left">
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" string representing the
      Server/Version this driver is currently connected to.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_CLIENT_VERSION</p>
     </td>
     <td align="left">
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" string representing the Client/Version this driver supports.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_SERVER_INFO</p>
     </td>
     <td align="left">
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" description of the Server.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_CONNECTION_STATUS</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <p class="para">Values not yet defined</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_CASE</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <p class="para">Processed and handled by PDO.</p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_CURSOR_NAME</p>
     </td>
     <td align="left">
      <p class="para">STRING</p>
      <p class="para">
       String representing the name for a database cursor for use in
       "<span class="quote">where current in &lt;name&gt;</span>" SQL statements.
      </p>
     </td>
    </tr>

    <tr valign="middle">
     <td align="left">
      <p class="para">PDO_ATTR_CURSOR</p>
     </td>
     <td align="left">
      <p class="para">LONG</p>
      <dl>

       <dt class="varlistentry">

        <span class="term">PDO_CURSOR_FWDONLY</span>

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

         <p class="para">Forward only cursor</p>
        </dd>

      
       <dt class="varlistentry">

       <span class="term">PDO_CURSOR_SCROLL</span>

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

         <p class="para">Scrollable cursor</p>
        </dd>

      
      </dl>

     </td>
    </tr>

   </tbody>
 
 </table>

 <p class="para">
  The values for the attributes above are all defined in terms of the Zend
  API. The Zend API contains macros that can be used to convert a *zval to a
  value. These macros are defined in the Zend header file, zend_API.h in the
  Zend directory of your PHP build directory. Some of these attributes can be
  used with the statement attribute handlers such as the PDO_ATTR_CURSOR and
  PDO_ATTR_CURSOR_NAME. See the statement attribute handling functions for
  more information.
 </p>
</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites