Answers for "how to get last inserted id in php using pdo"

PHP
1

php pdo last insert id

$stmt = $db->prepare("...");
$stmt->execute();
$id = $db->lastInsertId();
Posted by: Guest on September-16-2020
0

get last insert id pdo

$(document).ready(function(){
$.ajax({ url: "database/update.html",
        context: document.body,
        success: function(){
           alert("done");
        }});
});
Posted by: Guest on May-11-2021

Code answers related to "how to get last inserted id in php using pdo"

Browse Popular Code Answers by Language