U moet om de lastInsertId() . vragen voordat u een transaction pleegt
Probeer
$this->dbh->beginTransaction();
// $sql query ran
echo $this->dbh->lastInsertId();
$this->dbh->commit();
U moet om de lastInsertId() . vragen voordat u een transaction pleegt
Probeer
$this->dbh->beginTransaction();
// $sql query ran
echo $this->dbh->lastInsertId();
$this->dbh->commit();