mfischer Fri Sep 6 09:02:35 2002 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-db-query.xml
Log:
- Document the "changes database and not back" behaviour.
- Incooperate user comment about insert/select/delete queries from [EMAIL PROTECTED]
Index: phpdoc/en/reference/mysql/functions/mysql-db-query.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-db-query.xml:1.3
phpdoc/en/reference/mysql/functions/mysql-db-query.xml:1.4
--- phpdoc/en/reference/mysql/functions/mysql-db-query.xml:1.3 Sat May 25 17:09:15
2002
+++ phpdoc/en/reference/mysql/functions/mysql-db-query.xml Fri Sep 6 09:02:32
+2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
<refentry id="function.mysql-db-query">
<refnamediv>
@@ -18,7 +18,9 @@
</methodsynopsis>
<para>
Returns a positive MySQL result resource to the query result,
- or &false; on error.
+ or &false; on error. The function also returns &true;/&false; for
+ <literal>INSERT</literal>/<literal>UPDATE</literal>/<literal>DELETE</literal>
+ queries to indicate success/failure.
</para>
<para>
<function>mysql_db_query</function> selects a database and
@@ -27,6 +29,15 @@
MySQL server and if no such link is found it'll try to create one
as if <function>mysql_connect</function> was called with no
arguments.
+ </para>
+ <para>
+ Be aware that this function does <emphasis role="strong">NOT</emphasis>
+ switch back to the database you were connected before. In other words,
+ you can't use this function to <emphasis>temporarily</emphasis> run a
+ sql query on another database, you would have to manually switch back.
+ Users are strongly encouraged to use the
+ <literal>database.table</literal> syntax in their sql queries instead of
+ this function.
</para>
<para>
See also <function>mysql_connect</function> and
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php