betz Sun Aug 1 18:57:56 2004 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-list-dbs.xml
mysql-tablename.xml
Log:
mysql_list_tables is deprecated, do not link
improve example to improve performance
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml:1.5
phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml:1.6
--- phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml:1.5 Wed Jul 21 00:27:29
2004
+++ phpdoc/en/reference/mysql/functions/mysql-list-dbs.xml Sun Aug 1 18:57:56
2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.16 -->
<refentry id="function.mysql-list-dbs">
<refnamediv>
@@ -63,9 +63,8 @@
</para>
<para>
See also
- <function>mysql_db_name</function>,
- <function>mysql_select_db</function>, and
- <function>mysql_list_tables</function>.
+ <function>mysql_db_name</function>, and
+ <function>mysql_select_db</function>.
</para>
</refsect1>
</refentry>
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-tablename.xml?r1=1.10&r2=1.11&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-tablename.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.10
phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.11
--- phpdoc/en/reference/mysql/functions/mysql-tablename.xml:1.10 Wed Jul 21
00:27:29 2004
+++ phpdoc/en/reference/mysql/functions/mysql-tablename.xml Sun Aug 1 18:57:56
2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
<refentry id="function.mysql-tablename">
<refnamediv>
@@ -29,8 +29,8 @@
<?php
mysql_connect("localhost", "mysql_user", "mysql_password");
$result = mysql_list_tables("mydb");
-
-for ($i = 0; $i < mysql_num_rows($result); $i++) {
+$num_rows = mysql_num_rows($result);
+for ($i = 0; $i < $num_rows; $i++) {
echo "Table: ", mysql_tablename($result, $i), "\n";
}