Date: 08/21/00
- Next message: Joey Smith: "Re: [PHP-DOC] Re: [PHP-DEV] "waldschrotts guide to nifty references" - manualpage draft, version 0.9b"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DOC] Keeping manuals in synch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
torben Mon Aug 21 18:36:04 2000 EDT
Modified files:
/phpdoc/en/functions mysql.xml
Log:
Better explanations of what mysql_errno() and mysql_error() do.
Index: phpdoc/en/functions/mysql.xml
diff -u phpdoc/en/functions/mysql.xml:1.19 phpdoc/en/functions/mysql.xml:1.20
--- phpdoc/en/functions/mysql.xml:1.19 Wed Aug 16 17:22:07 2000
+++ phpdoc/en/functions/mysql.xml Mon Aug 21 18:36:03 2000
@@ -440,9 +440,18 @@
</funcprototype>
</funcsynopsis>
<para>
+ Returns the error number from the last mySQL function, or
+ <literal>0</literal> (zero) if no error occurred.
+ </para>
+ <para>
Errors coming back from the mySQL database backend no longer
- issue warnings. Instead, use these functions to retrieve the
- error number.
+ issue warnings. Instead, use <function>mysql_errno</function> to
+ retrieve the error code. Note that this function only returns the
+ error code from the most recently executed mySQL function (not
+ including <function>mysql_error</function> and
+ <function>mysql_errno</function>), so if you want to use it,
+ make sure you check the value before calling another mySQL
+ function.
<informalexample>
<programlisting role="php">
<?php
@@ -481,9 +490,17 @@
</funcprototype>
</funcsynopsis>
<para>
+ Returns the error text from the last mySQL function, or
+ <literal>''</literal> (the empty string) if no error occurred.
+ </para>
+ <para>
Errors coming back from the mySQL database backend no longer
- issue warnings. Instead, use these functions to retrieve the
- error string.
+ issue warnings. Instead, use <function>mysql_error</function> to
+ retrieve the error text. Note that this function only returns the
+ error text from the most recently executed mySQL function (not
+ including <function>mysql_error</function> and
+ <function>mysql_errno</function>), so if you want to use it, make
+ sure you check the value before calling another mySQL function.
<informalexample>
<programlisting role="php">
<?php
- Next message: Joey Smith: "Re: [PHP-DOC] Re: [PHP-DEV] "waldschrotts guide to nifty references" - manualpage draft, version 0.9b"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DOC] Keeping manuals in synch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

