Re: mysql_insert_id

From: Date: Thu, 22 Jul 2004 16:54:38 +0000
Subject: Re: mysql_insert_id
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13805@lists.php.net to get a copy of this message
On Thu, 22 Jul 2004 14:06:12 +0200, Pietro Cottafavi <pietro.cottafavi@fastwebnet.it> wrote: > don't know, > > but in the archive i have found this > > > http://marc.theaimsgroup.com/?l=pear-general&m=108905710702919&w=2 > You can always just call mysql_insert_id() without the connection parameter. It should give you the last inserted ID as long as you do it right after the query. > Justin Patrin wrote: > > >How's that? AFAIK it always works when the INSERT worked. And it > >should always work the same as LAST_INSERT_ID() > > > > > > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.general (#13805) next »