title: JQuery Datatable is only working with empty (no data) tables
body: <p>When the table is empty, Datatables works and shows no data available ( with pages and search etc..) But when a single row is inserted, Datatables breaks. 
  I am getting the data to the table using PHP and has used this method in the past and worked fine.</p>
  
  <p>I am assuming that since it works with empty tables, the problem is not with the linking of scripts etc.
  Any help would be great, thank you.</p>
  
  <p>I have tried to see if there is a problem within the HTML by correcting tags etc but I cant seem to identify the problem.</p>
  
  <pre><code>&lt;div class="tab-pane active" id="queries"&gt;
                  &lt;hr&gt;
                    &lt;table id="table1" class="table table-striped "&gt;
              &lt;thead&gt;
                  &lt;tr class="sticky" &gt;
                      &lt;th&gt;Date of Complaint&lt;/th&gt;
  
                      &lt;th&gt;Reference&lt;/th&gt;
                      &lt;th&gt;Name&lt;/th&gt;
                      &lt;th&gt;Surname&lt;/th&gt;
  
                      &lt;th&gt;Subject&lt;/th&gt;
  
  
                      &lt;th&gt; &lt;/th&gt;
  
  
                  &lt;/tr&gt;
               &lt;/thead&gt;
                  &lt;?php
                      //process $result
  
                  echo "&lt;tbody&gt;";
  
  
                      while ($row = mysqli_fetch_assoc($queriesresult2)) {     
                          ;
                          echo "&lt;tr&gt;";
  
                          echo "&lt;td&gt;".$row['Data1']."&lt;/td&gt;";
                         echo "&lt;td&gt;".$row['Data2']."&lt;/td&gt;";
                         echo "&lt;td&gt;".$row['Data3']."&lt;/td&gt;";
                         echo "&lt;td&gt;".$row['Data4']."&lt;/td&gt;";
                          echo "&lt;td&gt;".$row['Data5']."&lt;/td&gt;";
  
                          echo "&lt;td&gt;&lt;a class=\"btn btn-danger\" href=\"editQUERY?id=".$row['id']."\"&gt;Edit&lt;/a&gt;&lt;/td&gt;";
  
                          echo "&lt;/tr&gt;";
  
  
                      }
  
  
                  echo "&lt;/tbody&gt;";
  
  
                  ?&gt;
              &lt;/table&gt;
  
                &lt;hr&gt;
  
               &lt;/div&gt;
  </code></pre>