09-15-2017, 10:33 PM
Got it. The DataTables script requires a well-formed html table. Since the number of TH and TD columns don't match, it can't grab the data. Adding one for TH column in the head will fix it:
Edit: as a note, the pagination appears even if there's just 1 item!
Code:
<center><table id="paginate" class="table table-striped">
Code:
<thead>
Code:
<tr>
Code:
<th></th><th></th><th></th>
Code:
</tr>
Code:
</thead>
Edit: as a note, the pagination appears even if there's just 1 item!