title: PHP mySQL ~Echoed table and columns not displaying properly
body: <pre><code>&lt;?php
  
  $Table = $_POST['Table'];
  
  $mysqli = new mysqli
  ("LoginSec.db.11321798.hostedresource.com", "LoginSec", "aaAA11!!", "LoginSec");
  $result = $mysqli-&gt;query("SHOW TABLES");
  while ( $row = $result-&gt;fetch_row() ){
  $table = $row[0];
  $result1 = $mysqli-&gt;query("SELECT * FROM $Table LIMIT 0,12");
  if($result1) {
  echo '&lt;table cellpadding="15" cellspacing="20" class="db-table"&gt;';
  $column = $mysqli-&gt;query("SHOW COLUMNS FROM $table");
  echo '&lt;tr&gt;';
  while($row3 = $column-&gt;fetch_row() ) {
  echo '&lt;th&gt;'.$row3[0].'&lt;/th&gt;';
  
  
  
  }
  echo '&lt;/tr&gt;';
  while($row2 = $result1-&gt;fetch_row() ) {
    echo '&lt;tr&gt;';
    foreach($row2 as $key=&gt;$value) {
      echo '&lt;td style="padding-top:10px;padding.bottom:10px;"&gt;',$value,'&lt;/td&gt;';
    }
    echo '&lt;/tr&gt;';
  }
  echo '&lt;/table&gt;&lt;br /&gt;';
  }
  }
  $mysqli-&gt;close();
  
  ?&gt;
  </code></pre>
  
  <p>Also I have posted a URL to a pic of the issue, Please take a look and if you have any ideas please let me know. The cell padding all have been set properly.</p>