Re: How to start a transaction in php?

From: Date: Thu, 28 Sep 2000 11:57:47 +0000
Subject: Re: How to start a transaction in php?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3135@lists.php.net to get a copy of this message
Hello You don't have to start any transaction. If You want to change any data (ie. INSERT, UPDATE), the transaction starts. Then everything You do is one transaction until You commit it (odbc_commit), or rollback (...). There's one more function You should take into consider - odbc_autocommit - you've got to set it to false, otherwise after every change You will have commit. There might be some differences because of many odbc drivers, but those functions should work properly. Best regards mqqla >Hi, >i use php(4.0.2)+win98+sybase anywhere and i connect to the database via ODBC. >But i don't know how to start a transaction with odbc related functions. >i just find odbc_commit() and odbc_roolback(). >Can anyone tell me? >Thanks a lot.

« previous php.db (#3135) next »