title: PHP Database form CSS
body: <p>I have the following code:</p>
  
  <pre><code>&lt;?php
   require "dbconn.php";
  
   $register="SELECT * from register WHERE username = '". $_SESSION['username']."'";
  
  $re = $connect-&gt;query($register);
  
  $numrow = $re-&gt;num_rows; 
  
  echo "&lt;table&gt;";
  echo "&lt;tr&gt;";
  echo"&lt;th&gt;Username&lt;/th&gt;";
  echo"&lt;th&gt;Forename&lt;/th&gt;";
  echo"&lt;th&gt;Surname&lt;/th&gt;";
  echo"&lt;th&gt;Course&lt;/th&gt;";
  echo"&lt;th&gt;Subject&lt;/th&gt;";
  echo"&lt;th&gt;Level&lt;/th&gt;";
  echo"&lt;th&gt;Date&lt;/th&gt;";
  echo"&lt;th&gt;Time&lt;/th&gt;";
  echo"&lt;/tr&gt;";
  
  $count = 0;
  while ($count &lt; $numrow) 
  {
  $row = $re-&gt;fetch_assoc();
  extract($row);    
  echo "&lt;tr&gt;";
  
  echo "&lt;td&gt;";
  echo $username;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $firstName;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $surname;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $course;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $subject;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $level;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $date;
  echo "&lt;/td&gt;";
  
  echo "&lt;td&gt;";
  echo $time;
  echo "&lt;/td&gt;";
  
  echo "&lt;/tr&gt;";
  
  $count = $count + 1;
  }
  
  ?&gt;
  </code></pre>
  
  <p>It shows the records from the database as a form. I have the following button:</p>
  
  <pre><code>&lt;FORM METHOD="LINK" ACTION="register.php"&gt;
  &lt;INPUT TYPE="submit" VALUE="Go back to register"&gt;&lt;/INPUT&gt;&lt;/form&gt;
  </code></pre>
  
  <p>No matter what DIV I put the button in, or what CSS I give it. The button always stays ABOVE the form from the database and I cannot get it below the table.</p>
  
  <p>Any ideas?</p>