
<?php $rand = rand(); ?>
<div class="table-responsive">
                <table class="table table-primary" id="tbl-data-<?php echo $rand; ?>">
                    <?php echo $data; ?>
                </table>
</div>
   <script>
    $('#tbl-data-<?php echo $rand; ?>').paginathing({
        perPage: 200,
    });
   </script>