Re: Id from insert query

From: Date: Wed, 15 May 2002 19:18:00 +0000
Subject: Re: Id from insert query
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1382@lists.php.net to get a copy of this message
On Wed, May 15, 2002 at 09:08:11PM +0200, Iwan Birrer wrote: > Hello, > How do I get the id from a insert query with PEAR DB? With mysql it was > mysql_insert_id(). You obtain the ID before inserting using the nextID() function (e.g. $dbh->nextID("sequence_name")). See http://pear.php.net/manual/en/core.db.nextid.php for more information. -- Trond Arve Nordheim - "This message is ROT13-encrypted twice for extra security."

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