Datatables Php Library Star

Handles server-side processing for Datatables, in a fast and simple way !

Add custom column

When we retrieve the data from the database, the columns may not be enough for special fields such as action buttons.

You can define a custom field very easily by adding a column as in the following example. Search and sorting are disabled for these fields.

Id Name Unit Price Action
loading...

In addition to the above code, the following Javascript library files are loaded for use in this example:
https://code.jquery.com/jquery-3.3.1.js
https://cdn.datatables.net/2.0.8/js/dataTables.min.js
https://cdn.datatables.net/responsive/3.0.2/js/dataTables.responsive.min.js

The following CSS library files are loaded for use in this example to provide the styling of the table:
https://cdn.datatables.net/2.0.8/css/dataTables.dataTables.min.css
https://cdn.datatables.net/responsive/3.0.2/css/responsive.dataTables.min.css