From 3887a894e5284a65ac54c6dd68f2192bec2abb4f Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sat, 17 Nov 2001 11:43:14 +0000 Subject: [PATCH] Some enhancements git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@62631 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mysql.xml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/functions/mysql.xml b/functions/mysql.xml index 2db8f5f072..c171843d0a 100644 --- a/functions/mysql.xml +++ b/functions/mysql.xml @@ -1,21 +1,21 @@ - + MySQL Functions MySQL 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. 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: . - 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. @@ -28,7 +28,7 @@ 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. MySQL extension overview example @@ -50,8 +50,8 @@ $result = mysql_query($query) print "\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print "\t\n"; - foreach ($line as $col_name => $col_value) { - print "\t\t\n"; + foreach ($line as $col_value) { + print "\t\t\n"; } print "\t\n"; } @@ -156,10 +156,10 @@ mysql_close($link); mysql_change_user 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 link_identifier 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. @@ -192,7 +192,7 @@ mysql_close($link); - Returns: &true; on success, &false; on error. + &return.success; mysql_close closes the connection to the MySQL server that's associated with the specified link
$col_name$col_value$col_value