Why would DataTables not see rows that are actually being displayed? "Showing 1 to 1 of 1 entries"
Why would DataTables not see rows that are actually being displayed? "Showing 1 to 1 of 1 entries"
I'm using WordPress; on a page I am linking to mysql on my localhost from a php template that queries the data. The table is displayed with all existing rows. DataTables applies it's basic formatting successfully but at it's footer states "Showing 1 to 1 of 1 entries" so -of course, there's no sorting or data search produced.
This is the simple DataTables call I have at the bottom of the template:
$(document).ready(function() { $('#SelectRecsTable').dataTable( { "bJQueryUI": true, "paging": true, "ordering": true, "info": true } ); } );Dunno how to enable datatables to "see" the rows info that is actually being displayed. I am using <?php echo $print->Identificacion; ?> to output the data as an example for the "Identification" column (which again, shows!)
Heeeelp will be much appreciated!
Replies
Please do not make duplicate posts.
Sorry about that! Will not do again
Never mind Forum community! Silly mistake; my bad! Inside my <?php foreach ($result as $print) { ?> loop, I placed the <tbody> tag so my table had a zillion <tbody> tags therefore TableData ignored the data (for it's obviously improper table format)
I'll leave this here for it might be of help for somebody else.. one day.. in the foreseeable future