Get the ID generated from the previous INSERT operation

mysqli_stmt::get_warnings
mysqli_stmt::more_results
mysqli_stmt
PHP Manual

# 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

### Description

Object oriented style

int $mysqli_stmt->insert_id;

Procedural style

mixed mysqli_stmt_insert_id ( mysqli_stmt `$stmt` )
Warning

This function is currently not documented; only its argument list is available.

mysqli_stmt::get_warnings
mysqli_stmt::more_results
mysqli_stmt
PHP Manual