goba Sat Nov 17 06:43:14 2001 EDT
Modified files:
/phpdoc/en/functions mysql.xml
Log:
Some enhancements
Index: phpdoc/en/functions/mysql.xml
diff -u phpdoc/en/functions/mysql.xml:1.71 phpdoc/en/functions/mysql.xml:1.72
--- phpdoc/en/functions/mysql.xml:1.71 Sat Nov 17 06:31:21 2001
+++ phpdoc/en/functions/mysql.xml Sat Nov 17 06:43:14 2001
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.71 $ -->
+<!-- $Revision: 1.72 $ -->
<reference id="ref.mysql">
<title>MySQL Functions</title>
<titleabbrev>MySQL</titleabbrev>
<partintro>
<simpara>
These functions allow you to access MySQL database servers. In
- order to have these functions available, you must compile php
+ order to have these functions available, you must compile PHP
with MySQL support by using the
<option role="configure">--with-mysql</option> option. If you
- use this option without specifying the path to MySQL, php will
+ use this option without specifying the path to MySQL, PHP will
use the built-in MySQL client libraries. Users who run other
- applications that use MySQL (for example, running php3 and php4
+ applications that use MySQL (for example, running PHP 3 and PHP 4
as concurrent apache modules, or auth-mysql) should always
specify the path to MySQL:
<option role="configure">--with-mysql=/path/to/mysql</option>.
- This will force php to use the client libraries installed by
+ This will force PHP to use the client libraries installed by
MySQL, avoiding any conflicts.
</simpara>
<simpara>
@@ -28,7 +28,7 @@
</simpara>
<para>
This simple example shows how to connect, execute a query, print
- resulting rows and disconnect from MySQL Database.
+ resulting rows and disconnect from a MySQL database.
<example>
<title>MySQL extension overview example</title>
<programlisting role="php">
@@ -50,8 +50,8 @@
print "<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
print "\t<tr>\n";
- foreach ($line as $col_name => $col_value) {
- print "\t\t<td>$col_name</td><td>$col_value</td>\n";
+ foreach ($line as $col_value) {
+ print "\t\t<td>$col_value</td>\n";
}
print "\t</tr>\n";
}
@@ -156,10 +156,10 @@
<para>
<function>mysql_change_user</function> changes the logged in user
of the current active connection, or the connection given by the
- optional parameter link_identifier. If a database is
- specified, this will default or current database after the user
- has been changed. If the new user and password authorization fails,
- the current connected user stays active.
+ optional <parameter>link_identifier</parameter> parameter. If a
+ database is specified, this will default or current database after
+ the user has been changed. If the new user and password
+ authorization fails, the current connected user stays active.
</para>
<!-- what is returned? bool -> succes/failure i suppose? -->
@@ -192,7 +192,7 @@
</funcprototype>
</funcsynopsis>
<para>
- Returns: &true; on success, &false; on error.
+ &return.success;
</para>
<para> <function>mysql_close</function> closes the connection to
the MySQL server that's associated with the specified link