How i use Datatables server side processing

How i use Datatables server side processing

riazqureshiriazqureshi Posts: 2Questions: 2Answers: 0

This is my data, i want to populate it through data tables using server side processing, i am beginer in programing as well as on datatables. any help would be appriciated.

<?php $salesListing = salesListingNew(); $result = mysqli_query($connection, $salesListing); $i=1; if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_array($result)){ ?> "> $(document).ready(function(){ $("#delete<?php echo $row['saleID'];?>").on('click', function(event){ var ans = confirm('Are you sure you want to delete this Record.'); if(ans != true){ event.preventDefault(); } }); }); <?php $i++; } }else{ ?> <?php } ?>
S.No Date Invoice# Customer Name Total Sale Status
<?php echo $i;?> <?php echo $row['saleDate'];?> <?php echo $row['saleInvoice'];?> <?php echo $row['customerName'];?> <?php echo $row['totalSale'];;?> <?php if($row['status'] == 1 ){ echo '<span class="glyphicon glyphicon-ok" style="color:#69aa46;" title="Approved">'; }else{ echo ''; } ?>
No record(s) found
This discussion has been closed.