note 31765 deleted from ref.mysql by betz
| From: | betz@php.net | Date: | Wed, 21 Apr 2004 10:16:37 +0000 |
| Subject: | note 31765 deleted from ref.mysql by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68426@lists.php.net to get a copy of this message | ||
Note Submitter: Sparc@brturbo.com
----
At 25-Apr-2002 10:23 jeyoung at priscimon dot com said:
"If I establish two connections within the same PHP page, start a transaction in the first
connection and execute an INSERT query in the second one, and rollback the transaction in the first
connection, the INSERT query in the second connection is also rolled-back. "
As a matter of fact, you must call mysql_connect with the new_link parameter set to true to make a
new connection, otherwise, you'll get the same resource id as returned by the first
mysql_connect in the later connections.
Regards