->last_insert_id is a method of the database handle, not of the statement handle (see last_insert_id). So you want to call it on the database handle:
$dbh->last_insert_id()
In reply to Re: last_insert_id did not work
by Corion
in thread last_insert_id did not work
by bizactuator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |