Answers for "php pdo insert query return get last id"

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 "php pdo insert query return get last id"

Browse Popular Code Answers by Language