Re: DB.php version of mysql_insert_id()

From: Date: Fri, 19 Dec 2003 10:23:48 +0000
Subject: Re: DB.php version of mysql_insert_id()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9704@lists.php.net to get a copy of this message
On Thu, 18 Dec 2003, Mike Zornek wrote: > I use mysql_insert_id() in PHP to retrieve the ID of the last INSERTed > record. I'm trying to do this in PEAR's DB.php but can't see how. Just don't. Use sequences instead. It is portable. http://pear.php.net/manual/en/package.database.db.intro-sequences.php -- Mika Tuupola http://www.appelsiini.net/~tuupola/

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