<table id="mainTable" class="table table-bordered table-striped table-hover dataTable js-exportable">
<thead>
<tr>
<th>тест1</th>
<th>тест2</th>
<th>тест3</th>
<th>тест4</th>
<th>тест5</th>
<th>тест6</th>
<th>тест7</th>
<th>тест8</th>
</tr>
</thead>
<tbody id="BaseDownload">
</tbody>
<tfoot>
<tr>
<th><strong>TOTAL</strong></th>
<th>null</th>
<th>null</th>
<th>null</th>
<th>null</th>
<th>null</th>
<th>null</th>
<th>null</th>
</tr>
</tfoot>
</table>
function () {
$.ajax({
url: "download_bd.php",
type: "POST",
data: (''),
dataType: "html",
success: function (data) {
swal("Выполнено!");
$("#BaseDownload").html(data);
},
error: function (xhr, ajaxOptions, thrownError) {
swal("Error!", "Please try again", "error");
}
});
});
<?php
echo " <tr>
<td>Название-1</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>";
Пытался копаться в документации, но ничего не понятно.