[DB] getting id of the last insert

From: Date: Fri, 25 Nov 2005 23:38:26 +0000
Subject: [DB] getting id of the last insert
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22080@lists.php.net to get a copy of this message
I apologize since this is soemthing that I'm sure is in the documentation but I can't find it. How do you get the id of the last insert you performed? Do I just call nextId() before I do my insert e.g.: $id = $db->nextId(); $sth = $db->autoExecute( tblartistapp, $field_values, DB_AUTOQUERY_INSERT ); Thanks, Mark

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