note 76817 modified in function.mysqli-stmt-insert-id by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 21:46:34 +0000 |
| Subject: | note 76817 modified in function.mysqli-stmt-insert-id by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147266@lists.php.net to get a copy of this message | ||
This can be used as a property of a statement as well:
<?php
$statement = $mysqli->prepare($query);
echo $statement->insert_id;
?>
--was--
This can be used as a property of a statement as well:
<?php
$statement = $mysqli->prepare($query);
echo $statement->insert_id;
?>
http://php.net/manual/en/function.mysqli-stmt-insert-id.php