slawek          Sat May  4 13:17:27 2002 EDT

  Modified files:              
    /phpdoc/en/reference/mysql/functions        mysql-tablename.xml 
  Log:
  Fixed example
  
  
Index: phpdoc/en/reference/mysql/functions/mysql-tablename.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.3 
phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.4
--- phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.3 Sun Apr 21 13:18:40 
2002
+++ phpdoc/en/reference/mysql/functions/mysql-tablename.xml     Sat May  4 13:17:26 
+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-tablename">
    <refnamediv>
@@ -27,11 +27,10 @@
     mysql_connect("localhost", "mysql_user", "mysql_password");
     $result = mysql_list_tables("mydb");
 
-    for ($i = 0; $i < mysql_num_rows($result); $i++) {
+    for ($i = 0; $i < mysql_num_rows($result); $i++)
         printf ("Table: %s\n", mysql_tablename($result, $i));
 
     mysql_free_result($result);
-}
 ?>
 ]]>
       </programlisting>


Reply via email to