I have a problem for a long time.
I use a web template for my developments and I often have this error on some pages where I have to display tables, for example:
DataTables warning: table id = DataTables_Table_0 - Requested unknown parameter '4' for row 0
for this code :
<div class="panel panel-flat">
<table class="table table-bordered table-hover datatable-highlight table-striped">
<thead>
<tr class="bg-green-600">
<th class="text-bold" width="40px">Codes</th>
<th class="text-bold">Libelle</th>
</tr>
</thead>
<tbody>
<?php
// Cas sélection compte bancaire
$sql = "SELECT CODE_CIB, DESCRIPTION_CIB
FROM CODES_INTERBANCAIRES
ORDER BY CODE_CIB";
$req = $DB->query($sql);
while ($d = $req->fetch()) {
?>
<tr>
<td><?php echo $d['CODE_CIB']; ?></td>
<td><?php echo $d['DESCRIPTION_CIB']; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
I read the recommendations made on this error but I do not see any error that I could make. I specify that on other pages it works perfectly well and on other launch I have this error and when I click on the button ok the page is displayed. Thank you for your help.
</div>