$sth->last_insert_id
Update: It seems you need DBD::MariaDB for this to work, not DBD::mysql.
In reply to Re: Inserting into mysql and getting inserted id at the same time
by choroba
in thread Inserting into mysql and getting inserted id at the same time
by bizactuator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |