note 26801 rejected from function.mysql-insert-id by tix

From: Date: Wed, 13 Nov 2002 12:33:19 +0000
Subject: note 26801 rejected from function.mysql-insert-id by tix
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39440@lists.php.net to get a copy of this message
It is very interesting what result will be with persistant connections; <? $dblink = mysql_pconnect('localhost', 'me','mypwd'); mysql_select_db('test,$dblink); mysql_query('insert into test set name="something"'); //// here some slow code echo mysql_insert_id(); ?> imagine... lots of users requerst my script in the same time. Is it possible to get wrong insert_id in this situation?

« previous php.notes (#39440) next »