Warning: file_put_contents(): Only -1 of 60 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
SAM SAMConnection->connect() PHP Manual SAMConnection->commit() (No version information available, might be only in CVS) SAMConnection->commit() — Commits (completes) the current unit of work. ...
Forum und email

SAMConnection->commit()

(No version information available, might be only in CVS)

SAMConnection->commit() — Commits (completes) the current unit of work.

Popis

SAMConnection
bool commit ( void )

Calling the "commit" method on a Connection object commits (completes) all in-flight transactions that are part of the current unit of work.

Vrátené hodnoty

This method returns FALSE if an error occurs.

Príklady

Example#1 Committing the current unit of work

<?php
  
if (!$conn->commit()) {
    
// The commit failed!
    
echo "Commit failed ($conn->errno) $conn->error";
  }
?>