mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
mysql_list_tables is deprecated, do not link
improve example to improve performance git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164892 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1d56e937da
commit
9e3f64f706
2 changed files with 6 additions and 7 deletions
|
@ -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 @@ database3
|
|||
</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>
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue