Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 2550

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Returns a string containing the last SQL statement error message</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.db2-stmt-error.html">db2_stmt_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.db2-table-privileges.html">db2_table_privileges</a></div>
 <div class="up"><a href="ref.ibm-db2.html">IBM DB2 Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.db2-stmt-errormsg" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_stmt_errormsg</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_stmt_errormsg</span> &mdash; <span class="dc-title">
   Returns a string containing the last SQL statement error message
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.db2-stmt-errormsg-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>db2_stmt_errormsg</strong></span>
    ([ <span class="methodparam"><span class="type">resource</span> <code class="parameter">$stmt</code></span>
  ] )</div>


  <p class="para rdfs-comment">
   Returns a string containing the last SQL statement error message.
  </p>
  <p class="para">
   If you do not pass a statement resource as an argument to
    <span class="function"><strong>db2_stmt_errormsg()</strong></span>, the driver returns the error
   message associated with the last attempt to return a statement resource,
   for example, from  <span class="function"><a href="function.db2-prepare.html" class="function">db2_prepare()</a></span> or
    <span class="function"><a href="function.db2-exec.html" class="function">db2_exec()</a></span>.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.db2-stmt-errormsg-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">stmt</code></em></span>
     <dd>

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

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.db2-stmt-errormsg-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a string containing the error message and SQLCODE value for the
   last error that occurred issuing an SQL statement.
  </p>
 </div>


 

 <div class="refsect1 seealso" id="refsect1-function.db2-stmt-errormsg-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.db2-conn-error.html" class="function" rel="rdfs-seeAlso">db2_conn_error()</a> - Returns a string containing the SQLSTATE returned by the last connection attempt</span></li>
    <li class="member"> <span class="function"><a href="function.db2-conn-errormsg.html" class="function" rel="rdfs-seeAlso">db2_conn_errormsg()</a> - Returns the last connection error message and SQLCODE value</span></li>
    <li class="member"> <span class="function"><a href="function.db2-stmt-error.html" class="function" rel="rdfs-seeAlso">db2_stmt_error()</a> - Returns a string containing the SQLSTATE returned by an SQL statement</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.db2-stmt-error.html">db2_stmt_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.db2-table-privileges.html">db2_table_privileges</a></div>
 <div class="up"><a href="ref.ibm-db2.html">IBM DB2 Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>