From 37bea61c699b2884b293071259d27edc68184ac0 Mon Sep 17 00:00:00 2001 From: Pieter Hordijk Date: Mon, 3 Apr 2017 15:09:06 +0000 Subject: [PATCH] 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 --- reference/mysqli/mysqli/insert-id.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/mysqli/mysqli/insert-id.xml b/reference/mysqli/mysqli/insert-id.xml index eed49cf4c3..57d3bf6065 100644 --- a/reference/mysqli/mysqli/insert-id.xml +++ b/reference/mysqli/mysqli/insert-id.xml @@ -18,10 +18,10 @@ The mysqli_insert_id 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.