Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4925

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>Get the last error message</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.odbc-error.html">odbc_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.odbc-exec.html">odbc_exec</a></div>
 <div class="up"><a href="ref.uodbc.html">ODBC Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.odbc-errormsg" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_errormsg</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5)</p><p class="refpurpose"><span class="refname">odbc_errormsg</span> &mdash; <span class="dc-title">Get the last error message</span></p>

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

  <p class="simpara">
   Returns a string containing the last ODBC error message, or an empty
   string if there has been no errors.
  </p>
 </div>

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

    <dt>

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

      <p class="para">The ODBC connection identifier,
see  <span class="function"><a href="function.odbc-connect.html" class="function">odbc_connect()</a></span> for details.</p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-errormsg-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   If <em><code class="parameter">connection_id</code></em> is specified, the last state
   of that connection is returned, else the last state of any connection
   is returned.
  </p>
  <p class="para">
   This function returns meaningful value only if last odbc query failed
   (i.e.  <span class="function"><a href="function.odbc-exec.html" class="function">odbc_exec()</a></span> returned <strong><code>FALSE</code></strong>).
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.odbc-errormsg-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.odbc-error.html" class="function" rel="rdfs-seeAlso">odbc_error()</a> - Get the last error code</span></li>
    <li class="member"> <span class="function"><a href="function.odbc-exec.html" class="function" rel="rdfs-seeAlso">odbc_exec()</a> - Prepare and execute 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.odbc-error.html">odbc_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.odbc-exec.html">odbc_exec</a></div>
 <div class="up"><a href="ref.uodbc.html">ODBC Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>