PHP, MySQL and Transaction

From: Date: Fri, 16 Aug 2002 09:37:00 +0000
Subject: PHP, MySQL and Transaction
Groups: php.general 
Request: Send a blank email to php-general+get-112931@lists.php.net to get a copy of this message
Hello, In an MySQL table, I insert some records. Before each insert (just before), I do a "Select max() ..." and I increment the result by one, to give a number (unique), and I have an auto_incremente field too. I'd like to know if there is a mechanism in PHP, if several person do the same thing in the same moment, to not have several record with the same number. Christian,

« previous php.general (#112931) next »