Re: Re: deprecated mysql funcs

From: Date: Mon, 05 Jan 2004 15:52:29 +0000
Subject: Re: Re: deprecated mysql funcs
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357952@lists.php.net to get a copy of this message
mysql_insert_id    SELECT LAST_INSERT_ID();
Read the docs of the function, it is not the same. The function is supposed to return the ID *you have inserted* in this session, while the SELECT return the ID last *inserted by someone*, maybe paralelly to your session. Goba

« previous php.doc (#969357952) next »