tomsommer               Fri Sep 10 14:24:47 2004 EDT

  Modified files:              
    /phpdoc/en/reference/mysql/functions        mysql-field-name.xml 
  Log:
  Bug #30055 - Incorrect example
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-field-name.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-field-name.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.9 
phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.10
--- phpdoc/en/reference/mysql/functions/mysql-field-name.xml:1.9        Fri Feb 20 
12:36:42 2004
+++ phpdoc/en/reference/mysql/functions/mysql-field-name.xml    Fri Sep 10 14:24:47 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
   <refentry id="function.mysql-field-name">
    <refnamediv>
@@ -42,9 +42,9 @@
  *   username
  *   password.
  */
-$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
-if (!$db_selected) {
-    die('Could not set $dbname: ' . mysql_error());
+$link = @mysql_connect('localhost', 'mysql_user', 'mysql_password');
+if (!$link) {
+    die('Could not connect to MySQL server: ' . mysql_error());
 }
 $dbname = 'mydb';
 $db_selected = mysql_select_db($dbname, $link);

Reply via email to