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
This commit is contained in:
jim winstead 2001-01-23 02:07:46 +00:00
parent d119a57899
commit b6ec0edf52

View file

@ -51,6 +51,13 @@
server associated with the specified link identifier. If the
link identifier isn't specified, the last opened link is assumed.
</para>
<note>
<para>
If you are using transactions, you need to call
<function>mysql_affected_rows</function> after your INSERT,
UPDATE, or DELETE query, not after the commit.
</para>
</note>
<para>
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