This can be used as a property of a statement as well:
<?php
$statement = $mysqli->prepare($query);
echo $statement->insert_id;
?>
mysqli_stmt->insert_id
mysqli_stmt_insert_id
(PHP 5)
mysqli_stmt->insert_id -- mysqli_stmt_insert_id — Get the ID generated from the previous INSERT operation
설명
int $insert_id;
Warning
이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.
mysqli_stmt->insert_id
php at paulbutler dot org
31-Jul-2007 10:50
31-Jul-2007 10:50
