note 31765 added to ref.mysql

From: Date: Fri, 02 May 2003 20:35:48 +0000
Subject: note 31765 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-47402@lists.php.net to get a copy of this message
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 -- http://www.php.net/manual/en/ref.mysql.php http://master.php.net/manage/user-notes.php?action=edit+31765 http://master.php.net/manage/user-notes.php?action=delete+31765 http://master.php.net/manage/user-notes.php?action=reject+31765

« previous php.notes (#47402) next »