mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
mysql_tablename: use for loop in example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66677 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e63a3ec4b3
commit
571c200602
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.81 $ -->
|
||||
<!-- $Revision: 1.82 $ -->
|
||||
<reference id="ref.mysql">
|
||||
<title>MySQL Functions</title>
|
||||
<titleabbrev>MySQL</titleabbrev>
|
||||
|
@ -2156,11 +2156,9 @@ $result = mysql_query("SELECT my_col FROM my_tbl")
|
|||
<?php
|
||||
mysql_connect("host");
|
||||
$result = mysql_list_tables("wisconsin");
|
||||
$i = 0;
|
||||
while ($i < mysql_num_rows($result)) {
|
||||
for ($i = 0; $i < mysql_num_rows($result); $i++) {
|
||||
$tb_names[$i] = mysql_tablename($result, $i);
|
||||
echo $tb_names[$i] . "<BR>";
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue