in reply to How do I find the value MYSQL assigned to an AUTO_INCREMENT ID (int) Field?

I use :
my $sth = $dbh->prepare($sql); $sth->execute(); my $id = $sth->{'mysql_insertid'};
for me, $dbh->{'mysql_insertid'} doesn't work, (always returns 0).
--
Brovnik