next data not collapsing ? why
next data not collapsing ? why
bagas.aji838
Posts: 4Questions: 1Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
This question has an accepted answers - jump to answer
Answers
According to the information element Datatables sees only one row in the table. Without seeing your page its hard to say what is causing the issue.
Likely causes are you have more than one
tbody
element in the table, see the HTML requirements for details. Or you added a row without using Datatables APIs likerow.add()
so Datatables doesn't know about the new row.If you need help debugging please post a link to your page or a test case replicating the issue so we can see what you have.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
I'm not familiar with PHP but I believe you need a
<?php
tag to designate where the foreach loop ends. Looks like you have the</tbody>
tag within the loop. You can use the browser's inspect tool to see the resulting HTML table.kevin
when i used it the first time it was running, but after i created a new page with the same table id, data table got error, thank u man
https://datatables.net/forums/discussion/24398/showing-1-to-1-of-1-entries-when-i-use-php-and-mysqli-to-display-the-table the same problem and i solve it