the Pear::DB way to do mysql_insert_id?

From: Date: Mon, 02 Dec 2002 15:06:07 +0000
Subject: the Pear::DB way to do mysql_insert_id?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2888@lists.php.net to get a copy of this message
What is the proper PEAR way to get the value that mysql_insert_id() gives you when using an auto_increment index. I'm assuming that the function isn't implemented that way because other databases don't do sequences the same way. I looked through the nextId() function and it uses another table to keep the sequence. Could somebody explain the way this should be implemented with mysql? -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com Winner 2002 Eppy Award, Best U.S. Newspaper Website

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