title: Display table vertically
body: <p>I want to display table vertically. Now, It's displaying horizontally. Each 
     and every field is displaying. How can I display table vertically? 
     And one more thing I want to add one more function to the button. Current 
     date added into database when button 
     submit is clicked. For now this code is making my status 0 and not updating 
     date in database.</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta name="description" content="website description" /&gt;
          &lt;meta name="keywords" content="website keywords, website keywords" /&gt;
          &lt;meta http-equiv="content-type" content="text/html; charset=windows-
              1252" /&gt;
          &lt;link rel="stylesheet" type="text/css" href="style/style.css" /&gt;
          &lt;style&gt;
              &lt;table&gt;
              {
              border-style:solid;
              border-width:2px;
              border-color:pink;
              }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;?php
          include 'inc/head.php';
  
          include 'connection.php';
  
          $id = $_GET['id'];
  
          $sql = "SELECT * FROM user WHERE id='$id'";
  
          $query = mysqli_query($conn, $sql);
  
          echo "&lt;table border='6'&gt;
            &lt;tr&gt;
                &lt;th&gt;Application Type&lt;/th&gt; &lt;br&gt;
                &lt;th&gt;First name&lt;/th&gt;&lt;br&gt;
                &lt;th&gt;Sur name&lt;/th&gt;&lt;br&gt;
                &lt;th&gt;title&lt;/th&gt;
                &lt;th&gt;Date of Birth&lt;/th&gt;
                &lt;th&gt;Gender&lt;/th&gt;
                &lt;th&gt;Nationality&lt;/th&gt;
                &lt;th&gt;Country of Birth&lt;/th&gt;
                &lt;th&gt;Applicant's Location&lt;/th&gt;
                &lt;th&gt;alias&lt;/th&gt;
                &lt;th&gt;Criminal &lt;/th&gt;
                &lt;th&gt;Country of passport&lt;/th&gt;
                &lt;th&gt;Passport number&lt;/th&gt;
                &lt;th&gt;Passport issue date &lt;/th&gt;
                &lt;th&gt;Passport expiry date&lt;/th&gt;
                &lt;th&gt;Address &lt;/th&gt;
                &lt;th&gt;City&lt;/th&gt;
                &lt;th&gt;State&lt;/th&gt;
                &lt;th&gt;Postal Code&lt;/th&gt;
                &lt;th&gt;Country&lt;/th&gt;
                &lt;th&gt;Email Address&lt;/th&gt;
                &lt;th&gt;Home Number&lt;/th&gt;
                &lt;th&gt;Business Number&lt;/th&gt;
                &lt;th&gt;mobile&lt;/th&gt;
            &lt;/tr&gt;";
  
          while($row = mysqli_fetch_assoc($query)) {
              echo "&lt;tr&gt;";
              echo "  &lt;td&gt;" . $row['applicationtype'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['firstname'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['lastname'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['title1'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['dob'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['gender'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['nationality'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['countryofbirth'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['applicantlocation'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['alias'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['criminal'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['countryofpassport'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['passportnumber'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['pid'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['ped'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['address'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['city'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['state'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['postalcode'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['country'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['email'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['homephone'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['businessphone'] . "&lt;/td&gt;";
              echo "  &lt;td&gt;" . $row['mobile'] . "&lt;/td&gt;";
  
  
  
  
              echo "&lt;/tr&gt;";
          }
          echo "&lt;/table&gt;&lt;br&gt;&lt;br&gt;";
  
          if(isset($_POST['submit'])) {
              echo $radio = $_POST['radio'];
              $date_clicked = date('Y-m-d H:i:s');
  
              $sql = "UPDATE user SET visastatus='$radio' AND currentdate='$date_clicked' WHERE id='$id'";
              $query = mysqli_query($conn, $sql);
              if($query) {
                  echo "&lt;h4 style='color:green'&gt;Action Performed Successfully....&lt;/h4&gt;";
              } else {
                  echo "&lt;h4 style='color:red'&gt;Failed.&lt;/h4&gt;";
              }
          }
      ?&gt;
          &lt;form method="POST" action="" enctype="multipart/form-data"&gt;
              &lt;div class="col-xs-12 col-sm-6 col-md-6 col-lg-6" style="margin-top: 
                  8px;"&gt;
                  &lt;label class="checkbox-inline tourist-rad"&gt;
                  &lt;input type="radio" name="radio" id="success" 
                      value="Successfull"&gt;Successfull
                  &lt;/label&gt;            
                  &amp;nbsp;&amp;nbsp;&amp;nbsp;
                  &lt;label class="checkbox-inline tourist-rad"&gt;
                  &lt;input type="radio" name="radio" id="decline" value="Declined"&gt;Declined
                  &lt;/label&gt;
                  &amp;nbsp;&amp;nbsp;&amp;nbsp;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;button type="submit"  name="submit"  value="submit" class="btn btn-
                      primary" style="float: right;"&gt;Update Menu Item&lt;/button&gt;
              &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>