note 104736 deleted from mysqli-stmt.insert-id by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 Jul 2011 13:40:11 +0000 |
| Subject: | note 104736 deleted from mysqli-stmt.insert-id by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181243@lists.php.net to get a copy of this message | ||
Note Submitter: jvalenciae at jveweb dot net
----
I just ran a test and for me the value is indeed the last inserted id. I prepared a MySQL statement,
and executed the same statement several times, only changing the values, and every time I got the
unique ID that I was expecting. Do you have auto_increment set in your table?
Also, I am not sure where did you get the the mysqli_connection->insert_id from, there is no such
thing.