public function commit($throw=true)
	{
		if (!$this->transactionOpen && $throw) { $this->throwError("Transaction not open to commit()",""); return false; }
		if (!$this->isOpen) { $this->throwError("It's not connected to the database",""); return false; }
		$this->transactionOpen = false;
		return @$this->conn1->commit();
	}
public function commit($throw=true)
	{
		if (!$this->transactionOpen && $throw) { $this->throwError("Transaction not open to commit()",""); return false; }
		if (!$this->isOpen) { $this->throwError("It's not connected to the database",""); return false; }
		$this->transactionOpen = false;
		return @$this->conn1->commit();
	}
public function commit ( $ throw = true ) { if ( ! $ this -> transactionOpen && $ throw ) { $ this -> throwError ( "Transaction not open to commit()" , "" ) ; return false ; } if ( ! $ this -> isOpen ) { $ this -> throwError ( "It's not connected to the database" , "" ) ; return false ; } $ this -> transactionOpen = false ; return @ $ this -> conn1 -> commit ( ) ; }
Commit and close a transaction
@param bool $throw
@return bool
@throws Exception
@test equals false,(false),'transaction is not open'
Commit and close a transaction