sql get inserted id php sqlsrv code example Example: mysql get this inserted id php $this_id = mysqli_insert_id($db);