Maison >développement back-end >tutoriel php > 一看到这种程序就想抽写这种代码的人解决方案
一看到这种程序就想抽写这种代码的人
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> if($server > 0) { if(empty($dblist)) { $dbs = mysql_list_dbs(); $num_dbs = mysql_numrows($dbs); } else { $num_dbs = count($dblist); } for($i=0; $i <div id="el<?php echo $j;?>Parent" class="parent"> <a class="item" href="db_details.php?server=<?php%20echo%20%24server;?>&db=<?php%20echo%20%24db;?>" onclick="expandIt('el<?php echo $j;?>'); return false;"> <img name="imEx" src="images/plus.gif" border="0" alt="+" style="max-width:90%" style="max-width:90%" id="el<?php echo $j;?>Img"></a> <a class="item" href="db_details.php?server=<?php%20echo%20%24server;?>&db=<?php%20echo%20%24db;?>" onclick="expandIt('el<?php echo $j;?>');"> <font color="black" class="heada"> <?php echo $db;?> </font></a> </div> <div id="el<?php echo $j;?>Child" class="child"> <?php $tables = mysql_list_tables($db); $num_tables = @mysql_numrows($tables); for($j=0; $j<$num_tables; $j++) { $table = mysql_tablename($tables, $j); ?> <nobr> <a target="phpmain" href="sql.php?server=<?php%20echo%20%24server;?>&db=<?php%20echo%20%24db;?>&table=<?php%20echo%20urlencode(%24table);?>&sql_query=<?php%20echo%20urlencode(" select from>&pos=0&goto=tbl_properties.php"><img src="images/browse.gif" border="0" alt="<?php echo $strBrowse." :>"></a> <a class="item" target="phpmain" href="tbl_properties.php?server=<?php%20echo%20%24server;?>&db=<?php%20echo%20%24db;?>&table=<?php%20echo%20urlencode(%24table);?>"><?php echo $table;?></a></nobr><br> <?php