in reply to last_insert_id did not work
->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()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: last_insert_id did not work
by choroba (Cardinal) on Mar 27, 2021 at 14:35 UTC | |
|
Re^2: last_insert_id did not work
by bizactuator (Sexton) on Mar 27, 2021 at 07:34 UTC |