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"; -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php