db_printview.php3

来自「用PHP管理MySQL的软件- phpMySQL 采用命令行管理Mysql」· PHP3 代码 · 共 48 行

PHP3
48
字号
<?php/* $Id: db_printview.php3,v 1.1 2000/04/05 07:57:57 tobias Exp $ */if(!isset($message)){    include("header.inc.php3");}else{    show_message($message);}$tables = mysql_list_tables($db);$num_tables = @mysql_numrows($tables);if($num_tables == 0){    echo $strNoTablesFound;}else{    $i = 0;        echo "<table border=$cfgBorder>\n";    echo "<th>$strTable</th>";    echo "<th>$strRecords</th>";    while($i < $num_tables)    {        $table = mysql_tablename($tables, $i);        $query = "?server=$server&db=$db&table=$table&goto=db_details.php3";        $bgcolor = $cfgBgcolorOne;        $i % 2  ? 0: $bgcolor = $cfgBgcolorTwo;        ?>           <tr bgcolor="<?php echo $bgcolor;?>">                    <td class=data><b><?php echo $table;?></b></td>           <td align="right">&nbsp;<?php count_records($db,$table) ?></td>         </tr>        <?php        $i++;    }        echo "</table>\n";}require ("footer.inc.php3");?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?