Before making commit
, how to get the row ID
after insert using transaction in PHP
$qry = $con->prepare("/* query */");
$con->beginTransaction();
$qry->execute();
$last_id = $con->lastInsertId(); // This
$con->commit();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments