cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml

From: Date: Mon, 02 Dec 2002 02:09:30 +0000
Subject: cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350074@lists.php.net to get a copy of this message
pollita Sun Dec 1 21:09:30 2002 EDT Modified files: /phpdoc/en/reference/mysql/functions mysql-connect.xml Log: Added usage of mysql_error() in example. Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.4 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 Wed Jul 10 11:34:01 2002 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Sun Dec 1 21:09:30 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-connect"> <refnamediv> @@ -88,7 +88,7 @@ <![CDATA[ <?php $link = mysql_connect("localhost", "mysql_user", "mysql_password") - or die("Could not connect"); + or die("Could not connect: " . mysql_error()); print ("Connected successfully"); mysql_close($link); ?>

« previous php.doc (#969350074) next »