<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysqli.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mysqli.rollback.php',
    1 => 'mysqli::rollback',
    2 => 'Macht die aktuelle Transaktion r&uuml;ckg&auml;ngig',
  ),
  'up' => 
  array (
    0 => 'class.mysqli.php',
    1 => 'mysqli',
  ),
  'prev' => 
  array (
    0 => 'mysqli.release-savepoint.php',
    1 => 'mysqli::release_savepoint',
  ),
  'next' => 
  array (
    0 => 'mysqli.savepoint.php',
    1 => 'mysqli::savepoint',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/mysqli/mysqli/rollback.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.rollback" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::rollback</h1>
  <h1 class="refname">mysqli_rollback</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mysqli::rollback</span> -- <span class="refname">mysqli_rollback</span> &mdash; <span class="dc-title">Macht die aktuelle Transaktion rückgängig</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.rollback-description">
  <h3 class="title">Beschreibung</h3>
  <p class="para">Objektorientierter Stil</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysqli::rollback</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$name</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">Prozeduraler Stil</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_rollback</strong></span>(<span class="methodparam"><span class="type"><a href="class.mysqli.php" class="type mysqli">mysqli</a></span> <code class="parameter">$mysql</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$name</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Macht die aktuelle Transaktion für die Datenbank rückgängig.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.rollback-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">mysql</code></dt><dd><p class="para">Nur bei prozeduralem Aufruf: ein von
<span class="function"><a href="function.mysqli-connect.php" class="function">mysqli_connect()</a></span> oder <span class="function"><a href="mysqli.init.php" class="function">mysqli_init()</a></span>
zurückgegebenes <span class="classname"><a href="class.mysqli.php" class="classname">mysqli</a></span>-Objekt.</p></dd>
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Eine Bitmaske von
       <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-cor-and-chain">MYSQLI_TRANS_COR_<span class="replaceable">*</span></a></code></strong>-Konstanten
      </p>
     </dd>
    
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       Falls angegeben, wird <code class="literal">ROLLBACK/*name*/</code> ausgeführt
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.rollback-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mysqli.rollback-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="para">
If mysqli error reporting is enabled (<strong><code><a href="mysqli.constants.php#constant.mysqli-report-error">MYSQLI_REPORT_ERROR</a></code></strong>) and the requested operation fails,
a warning is generated. If, in addition, the mode is set to <strong><code><a href="mysqli.constants.php#constant.mysqli-report-strict">MYSQLI_REPORT_STRICT</a></code></strong>,
a <span class="classname"><a href="class.mysqli-sql-exception.php" class="classname">mysqli_sql_exception</a></span> is thrown instead.</p>
 </div>


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

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="parameter">name</code> ist nun nullable (akzeptiert den
        <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>-Wert).
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.rollback-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   Siehe das <a href="mysqli.begin-transaction.php#mysqli.begin-transaction.example.basic" class="link"><span class="methodname"><a href="mysqli.begin-transaction.php" class="methodname">mysqli::begin_transaction()</a></span>-Beispiel</a>.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-mysqli.rollback-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    Diese Funktion funktioniert nicht mit Tabellentypen, die keine
    Transaktionen unterstützen (wie MyISAM oder ISAM).
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.rollback-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.begin-transaction.php" class="function" rel="rdfs-seeAlso">mysqli_begin_transaction()</a> - Startet eine Transaktion</span></li>
    <li><span class="function"><a href="mysqli.commit.php" class="function" rel="rdfs-seeAlso">mysqli_commit()</a> - Best&auml;tigt die aktuelle Transaktion</span></li>
    <li><span class="function"><a href="mysqli.autocommit.php" class="function" rel="rdfs-seeAlso">mysqli_autocommit()</a> - Aktiviert oder deaktiviert das automatische Best&auml;tigen von Datenbank&auml;nderungen</span></li>
    <li><span class="function"><a href="mysqli.release-savepoint.php" class="function" rel="rdfs-seeAlso">mysqli_release_savepoint()</a> - Entfernt einen benannten Sicherungspunkt aus der Menge der Sicherungspunkte der aktuellen Transaktion</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>