10 INSERT Verkrijg de ingevoerde ID

$stmt = $mysqli -> prepare('INSERT INTO users (name, email) VALUES (?,?)');

$name = ‘Willemijn’;
$email = ‘willemijn@mail.com’;

$stmt -> bind_param(‘ss’, $name, $email);
$stmt -> execute();

echo ‘Je account id is ‘ . $stmt -> insert_id;