Re: [PHP-DB] How to start a transaction in php? From: mqqla (mqqla <email protected>)
Date: 09/28/00

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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>