How to get JSON data from API to DataTables

How to get JSON data from API to DataTables

zinitgroupzinitgroup Posts: 1Questions: 1Answers: 0

i try to fetch data from API using PHP in data table. i have done using foreach but search bar & pagination removed.
here is my url
zinly.pk/covid-19/tbl.php

Answers

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    You don't appear to be including the DataTables' javascript library.

    Your page shows this error:

    Uncaught TypeError: $(...).DataTable is not a function
        at HTMLDocument.<anonymous>
    
This discussion has been closed.