SAMConnection->commit()
(No version information available, might be only in CVS)
SAMConnection->commit() — 現在作業中の内容をコミット (正常に完了) する
説明
SAMConnection
bool commit ( void
)
接続オブジェクトに対して "commit" メソッドをコールすると、 現在処理中のトランザクションのすべての内容をコミットします。
返り値
エラーが発生した場合に FALSE を返します。
例
Example#1 現在処理中の内容のコミット
<?php
if (!$conn->commit()) {
// コミットに失敗しました!
echo "Commit failed ($conn->errno) $conn->error";
}
?>