<?php
$Table = $_POST['Table'];
$mysqli = new mysqli
("LoginSec.db.11321798.hostedresource.com", "LoginSec", "aaAA11!!", "LoginSec");
$result = $mysqli->query("SHOW TABLES");
while ( $row = $result->fetch_row() ){
$table = $row[0];
$result1 = $mysqli->query("SELECT * FROM $Table LIMIT 0,12");
if($result1) {
echo '<table cellpadding="15" cellspacing="20" class="db-table">';
$column = $mysqli->query("SHOW COLUMNS FROM $table");
echo '<tr>';
while($row3 = $column->fetch_row() ) {
echo '<th>'.$row3[0].'</th>';
}
echo '</tr>';
while($row2 = $result1->fetch_row() ) {
echo '<tr>';
foreach($row2 as $key=>$value) {
echo '<td style="padding-top:10px;padding.bottom:10px;">',$value,'</td>';
}
echo '</tr>';
}
echo '</table><br />';
}
}
$mysqli->close();
?>
另外,我已经发布了该问题图片的 URL,请查看,如果您有任何想法,请告诉我。单元格填充都已正确设置。