Php- How to use Data Table in php

# Use Data Table for auto search fields.

#Link CSS
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">
# Link The JS Library 

<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.12.3.js"></script>

<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js">
</script>
# Use To arrange the table content as Accending or Decending Order

<script type="text/javascript">
$(document).ready(function() 
{
   // 0 =index column on which accending or decending will perform.
   // example is table id

   $('#example').DataTable( {
       "order": [[ 0, "desc" ]]   
   });
});
</script>
Please follow and like us:
0