Improved explanation of what last insert id returns

https://bugs.php.net/bug.php?id=69400

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342218 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Pieter Hordijk 2017-04-03 15:09:06 +00:00
parent 2342022e8a
commit 37bea61c69

View file

@ -18,10 +18,10 @@
</methodsynopsis>
<para>
The <function>mysqli_insert_id</function> function returns the ID generated
by a query on a table with a column having the AUTO_INCREMENT attribute. If
the last query wasn't an INSERT or UPDATE statement or if the modified table
does not have a column with the AUTO_INCREMENT attribute, this function will
return zero.
by a query (usually INSERT) on a table with a column having the
AUTO_INCREMENT attribute. If the there hans't been an INSERT or UPDATE
statement on the connection or if the modified table does not have a column
with the AUTO_INCREMENT attribute, this function will return zero.
</para>
<note>
<para>