- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
<?php
$db=$_COOKIE['db'];
$tbn=$_REQUEST['tb_s'];
include('conf.php');
mysql_select_db($db);
echo '<h4 class="nr">'.$db.'.'.$tbn.'</h4><hr>';
$q=mysql_query("SHOW COLUMNS FROM ".$tbn."");
echo "<table border='1' class='t'><tr>";
while($ntb=mysql_fetch_row($q)){
echo "<td class='gr'>".$ntb['0']."</td>";
}
echo '</tr>';
$query=mysql_query("SELECT * FROM ".$tbn."");
while($row=mysql_fetch_array($query)){
$qq=mysql_query("SHOW COLUMNS FROM ".$tbn."");
echo '<tr>';
while($ntb=mysql_fetch_row($qq)){
$u=$ntb[0];
echo '<td>'.$row[$u].'</td>';
}
echo '</tr>';
}
echo '</table><hr>';
echo"<a href='s_db.php?db_s=".$_SESSION['db']."'>Bepнyтcя к тaблицaм</a>";
?>