Sophie

Sophie

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

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>Checks for the last error thrown during a database operation</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongodb.listcollections.html">MongoDB::listCollections</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongodb.repair.html">MongoDB::repair</a></div>
 <div class="up"><a href="class.mongodb.html">MongoDB</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongodb.preverror" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB::prevError</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.5)</p><p class="refpurpose"><span class="refname">MongoDB::prevError</span> &mdash; <span class="dc-title">Checks for the last error thrown during a database operation</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb.preverror-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>MongoDB::prevError</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
    <span class="function"><a href="mongodb.lasterror.html" class="function">MongoDB::lastError()</a></span> is usually preferred to this.  This 
   method returns the last database error that occurred and how many operations
   ago it occurred.  It is mostly deprecated.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb.preverror-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb.preverror-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the error and the number of operations ago it occurred.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-mongodb.preverror-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>1.2.11</td>
       <td>Emits <strong><code>E_DEPRECATED</code></strong> when used.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongodb.listcollections.html">MongoDB::listCollections</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongodb.repair.html">MongoDB::repair</a></div>
 <div class="up"><a href="class.mongodb.html">MongoDB</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>