php pdo transaction get last insert id of first query code example
Example: php pdo last insert id
$stmt = $db->prepare("...");
$stmt->execute();
$id = $db->lastInsertId();
$stmt = $db->prepare("...");
$stmt->execute();
$id = $db->lastInsertId();