Anda harus meminta lastInsertId()
sebelum Anda melakukan transaction
Coba
$this->dbh->beginTransaction();
// $sql query ran
echo $this->dbh->lastInsertId();
$this->dbh->commit();
Anda harus meminta lastInsertId()
sebelum Anda melakukan transaction
Coba
$this->dbh->beginTransaction();
// $sql query ran
echo $this->dbh->lastInsertId();
$this->dbh->commit();