in reply to
Finding last added auto_increment id in mysql
are you actually inserting first? you'll need to perform an operation in order for that statement handle to retrieve the last sequence id.
Comment on
Re: Finding last added auto_increment id in mysql
In Section
Seekers of Perl Wisdom