Select the last inserted row easiest way pdo code example
Example: get last insert id pdo
$(document).ready(function(){
$.ajax({ url: "database/update.html",
context: document.body,
success: function(){
alert("done");
}});
});