<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="maxdb.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="maxdb.examples.html">Examples</a></div> <div class="up"><a href="book.maxdb.html">MaxDB</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="maxdb.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <p class="para"> The following constants to use with <span class="function"><a href="function.maxdb-options.html" class="function">maxdb_options()</a></span> are defined. For further description of these constants see <a href="http://maxdb.sap.com/documentation/" class="link external">» http://maxdb.sap.com/documentation/</a>. <table class="doctable table"> <caption><strong>MaxDB PHP client constants</strong></caption> <thead> <tr> <th>Constant</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>MAXDB_COMPNAME</td> <td>The component name used to initialise the SQLDBC runtime environment.</td> </tr> <tr> <td>MAXDB_APPLICATION</td> <td>The application to be connected to the database.</td> </tr> <tr> <td>MAXDB_APPVERSION</td> <td>The version of the application.</td> </tr> <tr> <td>MAXDB_SQLMODE</td> <td>The SQL mode.</td> </tr> <tr> <td>MAXDB_UNICODE</td> <td>TRUE, if the connection is an unicode (UCS2) client or FALSE, if not.</td> </tr> <tr> <td>MAXDB_TIMEOUT</td> <td> The maximum allowed time of inactivity after which the connection to the database is closed by the system. </td> </tr> <tr> <td>MAXDB_ISOLATIONLEVEL</td> <td> Specifies whether and how shared locks and exclusive locks are implicitly requested or released. </td> </tr> <tr> <td>MAXDB_PACKETCOUNT</td> <td> The number of different request packets used for the connection. </td> </tr> <tr> <td>MAXDB_STATEMENTCACHESIZE</td> <td> The number of prepared statements to be cached for the connection for re-use. </td> </tr> <tr> <td>MAXDB_CURSORPREFIX</td> <td> The prefix to use for result tables that are automatically named. </td> </tr> </tbody> </table> </p> <p class="para"> The function <span class="function"><a href="function.maxdb-fetch-array.html" class="function">maxdb_fetch_array()</a></span> uses a constant for the different types of result arrays. The following constants are defined: <table class="doctable table"> <caption><strong>MaxDB fetch constants</strong></caption> <thead> <tr> <th>Constant</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>MAXDB_ASSOC</td> <td> Columns are returned into the array having the fieldname as the array index. </td> </tr> <tr> <td>MAXDB_ASSOC_UPPER</td> <td> Columns are returned into the array having the upper case fieldname as the array index. </td> </tr> <tr> <td>MAXDB_ASSOC_LOWER</td> <td> Columns are returned into the array having the lower case fieldname as the array index. </td> </tr> <tr> <td>MAXDB_BOTH</td> <td> Columns are returned into the array having both a numerical index and the fieldname as the array index. </td> </tr> <tr> <td>MAXDB_NUM</td> <td> Columns are returned into the array having a numerical index to the fields. This index starts with 0, the first field in the result. </td> </tr> </tbody> </table> </p> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="maxdb.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="maxdb.examples.html">Examples</a></div> <div class="up"><a href="book.maxdb.html">MaxDB</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>