mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Some enhancements
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@62631 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
57df7bc396
commit
3887a894e5
1 changed files with 13 additions and 13 deletions
|
@ -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 @@ $result = mysql_query($query)
|
|||
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 @@ mysql_close($link);
|
|||
<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 @@ mysql_close($link);
|
|||
</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
|
||||
|
|
Loading…
Reference in a new issue