Getting the primary key from a MySQL insert

From: Date: Fri, 16 Jul 2004 10:30:23 +0000
Subject: Getting the primary key from a MySQL insert
Groups: php.general 
Request: Send a blank email to php-general+get-190693@lists.php.net to get a copy of this message
If the primary key in a MySQL DB is an autoincrementing integer, is there anyway of automatically getting it back when I do an insert in PHP. In other words taking the status returned by mysql_query and extracting the PK of the record we just entered?

« previous php.general (#190693) next »