in reply to How do I find the value MYSQL assigned to an AUTO_INCREMENT ID (int) Field?
$id = $dbh->{mysql_insertid} $id = $dbh->{insertid} $id = $sth->{mysql_insertid} [download]
$id = $sth->{insertid} [download]