title: Javascript format-function for child tables with PHP
body: <p>I have an issue with a function for child tables in my DataTable PlugIn..
  I want to fill the table with data from my SQL-Database. But when I want to put the PHP-variables into my td's, my DataTable is broke (doesn't create the table).
  I really don't know what I'm doing wrong.. I hope you guys can help me :(
  Here is a short code Example:</p>
  
  <pre><code>'&lt;div id="'+data[4]+'tasks" class="tab-pane fade"&gt;'+
                          '&lt;table&gt;'+
                              '&lt;thead&gt;'+
                                  '&lt;tr&gt;'+
                                  '&lt;th&gt;Task&lt;/th&gt;'+
                                  '&lt;th&gt;Status&lt;/th&gt;'+
                                  '&lt;th&gt;Person&lt;/th&gt;'+
                                  '&lt;/tr&gt;'+
                                  '&lt;/thead&gt;'+
                                  '&lt;tbody&gt;'+
                                  &lt;?php
                                  $sqltask = "SELECT * FROM taskscp WHERE status !='completed' AND status !='revoked'";
                                  $result3 = $conn-&gt;query($sqltask);
                                  while($row3 = $result3-&gt;fetch_assoc()){
                                      echo"'&lt;tr&gt;'+";
                                          echo"'&lt;td&gt;'+" . $row3['task'] . "'&lt;/td&gt;'+";
                                          echo"'&lt;td&gt;'+" . $row3['person'] . "'&lt;/td&gt;'+";
                                          echo"'&lt;td&gt;'+" . $row3['status'] . "'&lt;/td&gt;'+";;
                                      echo"'&lt;/tr&gt;'+";
                                  }
                                  ?&gt;
                                  '&lt;/tbody&gt;'+
                                  '&lt;/table&gt;'+
                          '&lt;/div&gt;'+
  </code></pre>