How to use Jquery DataTables in PHP?




How to use Jquery DataTables in PHP?

Hi friends,

In this post, we will learn how to use php with jquery datatables example. i explained simply how to use jquery datatable example in php. Here you will learn jquery datatable with php example. This tutorial will give you simple example of jQuery datatable plugin in php mysql.

I will give you simple Example of how to use jquery datatables plugin example with php & mysql.

So let's see bellow example:


<!DOCTYPE html>



<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<title>How to use Jquery DataTables in PHP?-</title>

<link rel="stylesheet" type="text/css" href=""/>

<link rel="stylesheet" type="text/css" href=""/>




$connect = mysqli_connect("localhost", "root", "", "demos");

$query ="SELECT * FROM developers ORDER BY ID DESC";

$result = mysqli_query($connect, $query);


<div class="container mt-5">

<div class="row">

<div class="col-md-12">

<div class="card">

<div class="card-header text-center text-white" style="background: #1867ab;">

<h3>How to use Jquery DataTables in PHP? -</h3>


<div class="card-body">

<table id="employee_data" class="table table-bordered table-striped">














while($row = mysqli_fetch_array($result))





















<!-- Script -->

<script src=""></script>

<script type="text/javascript" src=""></script>

<script type="text/javascript" src=""></script>









I hope it will help you....