. ? ?
.
, MySql phpMyAdmin - , , SQL .
: , , . , , , .
PHP - , , .
EDIT: - , . - EDIT: .
<?php
listAll("table_name");
function listAll($db) {
mysql_connect("localhost","root","");
mysql_select_db($db);
$tables = mysql_query("SHOW TABLES FROM $db");
while (list($tableName)=mysql_fetch_array($tables)) {
$result = mysql_query("DESCRIBE $tableName");
$rows = array();
while (list($row)=mysql_fetch_array($result)) {
$rows[] = $row;
}
$count = count($rows);
if ($count>0) {
echo '<p><strong>',htmlentities($tableName),'</strong><br /><table border="1"><tr>';
foreach ($rows as &$value) {
echo '<td><strong>',htmlentities($value),'</strong></td>';
}
echo '</tr>';
$result = mysql_query("SELECT * FROM $tableName");
while ($row=mysql_fetch_array($result)) {
echo '<tr>';
for ($i=0;$i<(count($row)/2);$i++) {
echo '<td>',htmlentities($row[$i]),'</td>';
}
echo '</tr>';
}
echo '</table></p>';
}
}
return FALSE;
}
?>
, , , !
user873578