What are the advantage to use Datatables Server Side VS plain PHP/AJAX table?

What are the advantage to use Datatables Server Side VS plain PHP/AJAX table?

lenamtllenamtl Posts: 265Questions: 65Answers: 1
edited August 2017 in Free community support

Hi,

I have a regular table, the table is empty when page load, the data is loaded only when user selecting drop down using AJAX & PHP PDO OOP MySQL around 10k data.

When using server side, we have to program the search and the pagination, so what are the advantage to use Datatables for this?

Is there any good tutorial about Datatables Serverside with PHP & MySQL?
I already checked the Datatables documentation and serverside file, I need more info than that.

This question has an accepted answers - jump to answer

Answers

  • lenamtllenamtl Posts: 265Questions: 65Answers: 1

    For the moment I append the table element using Ajax, PHP and MySQL.

    What will be the difference on performance compare to Datatables server side method?

  • allanallan Posts: 61,946Questions: 1Answers: 10,158 Site admin
    Answer ✓

    In terms of simply displaying a table, I doubt there will be any appreciable difference in performance. Both should happen in just a handful of milliseconds.

    Is there any good tutorial about Datatables Serverside with PHP & MySQL?
    I already checked the Datatables documentation and serverside file, I need more info than that.

    Perhaps you could say what you need that isn't in the documentation? That way I can add it in and everyone can benefit!

    There is also a live example which shows the interactivity of DataTables - which is the main benefit over a plain table.

    Allan

This discussion has been closed.