Re: cvs: phpdoc /en/reference/mysql/functions mysql-affected-rows.xml mysql-close.xml mysql-create-db.xml mysql-data-seek.xml mysql-fetch-array.xml
mysql-fetch-field.xml mysql-field-name.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-

From: Date: Mon, 02 Dec 2002 09:12:49 +0000
Subject: Re: cvs: phpdoc /en/reference/mysql/functions mysql-affected-rows.xml mysql-close.xml mysql-create-db.xml mysql-data-seek.xml mysql-fetch-array.xml
mysql-fetch-field.xml mysql-field-name.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350090@lists.php.net to get a copy of this message
Khm, it would be nice to use the link as a parameter for mysql_error() in examples, where the link is used in other function calls (like the one quoted below, and in some others): Index: phpdoc/en/reference/mysql/functions/mysql-field-name.xml diff -u phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.2 phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.3 --- phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.2 Wed Apr 17 02:41:11 2002 +++ phpdoc/en/reference/mysql/functions/mysql-field-name.xml Sun Dec 1 21:37:29 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-field-name"> <refnamediv> @@ -42,7 +42,7 @@ */ $link = mysql_connect('localhost', "mysql_user", "mysql_password"); mysql_select_db($dbname, $link) - or die("Could not set $dbname"); + or die("Could not set $dbname: " . mysql_error()); $res = mysql_query("select * from users", $link); echo mysql_field_name($res, 0) . "\n";

« previous php.doc (#969350090) next »