<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_65022"> <div class="blockcode"> <div id="code_zd2"><ol> <li><?php$conn = @mysql_connect( "localhost", "userName", "password" ) or die( "Sorry - could not connect to MySQL" );<li>$rs= @mysql_list_dbs( $conn ) or die( "Sorry - could not list databases" );for( $row=0; $row < mysql_num_rows($rs); $row ){<li> $db_list .= mysql_tablename( $rs, $row ) . "<br />"; } ?><html> <head></li> <li> <title>Listing databases</title></li> <li> </head> <body></li> <li> <h3></li> <li> <?php echo( $db_list ); ?></li> <li> </h3></li> <li> </body></html></li> </ol></div> <em onclick="copycode($('code_zd2'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> PHP、MySQL</div> <div id="comment_65022" class="cm"> </div> <div id="post_rate_div_65022"></div> <br><br>