cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
| From: | Nuno Lopes | Date: | Sat, 10 May 2008 19:36:32 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1615@lists.php.net to get a copy of this message | ||
nlopess Sat May 10 19:36:32 2008 UTC
Modified files:
/phpdoc/en/reference/mysql/functions mysql-connect.xml
Log:
fix the 3rd example (fix connect to socket), per user note
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.23&r2=1.24&diff_format=u
Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.23
phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.24
--- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.23 Wed Nov 21 15:46:20 2007
+++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Sat May 10 19:36:32 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<refentry xml:id="function.mysql-connect" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysql_connect</refname>
@@ -201,7 +201,7 @@
// we connect to localhost and socket e.g. /tmp/mysql.sock
//variant 1: ommit localhost
-$link = mysql_connect('/tmp/mysql', 'mysql_user', 'mysql_password');
+$link = mysql_connect(':/tmp/mysql', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}