From b6ec0edf521355c5bcbbfdd38f3711ca7368c616 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Tue, 23 Jan 2001 02:07:46 +0000 Subject: [PATCH] note that mysql_affected_rows must be called before commit when using transactions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@40014 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mysql.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions/mysql.xml b/functions/mysql.xml index 0f3281282c..38b945cbd2 100644 --- a/functions/mysql.xml +++ b/functions/mysql.xml @@ -51,6 +51,13 @@ server associated with the specified link identifier. If the link identifier isn't specified, the last opened link is assumed. + + + If you are using transactions, you need to call + mysql_affected_rows after your INSERT, + UPDATE, or DELETE query, not after the commit. + + If the last query was a DELETE query with no WHERE clause, all of the records will have been deleted from the table but this