jimw Mon Jan 22 18:07:46 2001 EDT
Modified files:
/phpdoc/en/functions mysql.xml
Log:
note that mysql_affected_rows must be called before commit when using transactions
Index: phpdoc/en/functions/mysql.xml
diff -u phpdoc/en/functions/mysql.xml:1.34 phpdoc/en/functions/mysql.xml:1.35
--- phpdoc/en/functions/mysql.xml:1.34 Mon Jan 22 17:26:21 2001
+++ phpdoc/en/functions/mysql.xml Mon Jan 22 18:07:46 2001
@@ -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