mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
d119a57899
commit
b6ec0edf52
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue