<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_65021"> <div class="blockcode"> <div id="code_AH4"><ol> <li><?php $conn = @mysql_connect( "localhost", "userName", "password" ) or die( "Sorry - could not connect to MySQL" );$rs1= mysql_list_dbs( $conn );for( $row=0; $row < mysql_num_rows( $rs1 ); $row )<li>{<li> $this_db = mysql_tablename( $rs1, $row );<li> $list .= "<b>".$this_db."</b><br />";</li> <li> if( $this_db != "mysql" )</li> <li> {</li> <li> $rs2 = mysql_list_tables( $this_db );</li> <li> </li> <li> for( $num=0; $num < mysql_num_rows( $rs2) ; $num )</li> <li> {</li> <li> $list .= " - " . mysql_tablename( $rs2, $num ) . "<br />";</li> <li> }</li> <li> }</li> <li>}</li> <li>?></li> <li> </li> <li><html> <head></li> <li> <title>Listing Tables</title></li> <li> </head> <body></li> <li> <?php echo( $list ); ?></li> <li> </body></html></li> </ol></div> <em onclick="copycode($('code_AH4'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 데이터베이스에서는 php</div> <div id="comment_65021" class="cm"> </div> <div id="post_rate_div_65021"></div> <br><br>