How do I populate data in both tablefoot and tablebody by getting values from an sql database. For example, the data in tablefoot refers to the date and tablebody refers to the values that belong to that date. I am confused about how this kind of tables work. Thanks in advance!
<table id="data">
<tfoot id="datafoot">
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>25</td>
<td>27</td>
<td>25</td>
<td>54</td>
</tr>
</tbody>
</table>