home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 August
/
PCWorld_2001-08_cd.bin
/
Komunikace
/
phptriad
/
phptriadsetup2-11.exe
/
htdocs
/
phpMyAdmin
/
db_printview.php
< prev
next >
Wrap
PHP Script
|
2000-08-20
|
978b
|
48 lines
<?php
/* $Id: db_printview.php,v 1.1 2000/04/05 07:57:57 tobias Exp $ */
if(!isset($message))
{
include("header.inc.php");
}
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.php";
$bgcolor = $cfgBgcolorOne;
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
?>
<tr bgcolor="<?php echo $bgcolor;?>">
<td class=data><b><?php echo $table;?></b></td>
<td align="right"> <?php count_records($db,$table) ?></td>
</tr>
<?php
$i++;
}
echo "</table>\n";
}
require ("footer.inc.php");
?>