Help for this page
$dbh->{mysql_insertid}
my $id = $dbh->{mysql_insertid}; $sth = $dbh->prepare(<<"SQL"); ... WHERE history_id = ? SQL $sth->execute($id, $id);