[answered] PHP MySqli script returns all records

[answered] PHP MySqli script returns all records

jurgenskrausejurgenskrause Posts: 3Questions: 2Answers: 0
edited November 2014 in Free community support

Hi, I am trying to get Datatables to display call records from an Asterisk server.

I am using the server side script from https://www.datatables.net/development/server-side/php_mysqli
I have only changed the logins and column names.

This is my JavaScript:

$(document).ready(function() {
  var oTable = $('#call_records').DataTable({
        "processing": true,
        "serverSide": true,
        "ajax": "./newconnector.php",
        "length": 10
  });
});

When I open the page containing the table, it loads every single record into one single page, even though it shows the paging tabs at the bottom.

Answers

  • jurgenskrausejurgenskrause Posts: 3Questions: 2Answers: 0

    Sorry,

    I had been using the wrong server side scripting. 1.10 includes a very decent server side script and you don't need to use the one I indicated above.

This discussion has been closed.