note 26801 added to function.mysql-insert-id

From: Date: Wed, 13 Nov 2002 11:55:59 +0000
Subject: note 26801 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-39438@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? -- http://www.php.net/manual/en/function.mysql-insert-id.php http://master.php.net/manage/user-notes.php?action=edit+26801 http://master.php.net/manage/user-notes.php?action=delete+26801 http://master.php.net/manage/user-notes.php?action=reject+26801

« previous php.notes (#39438) next »