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: 2,767Questions: 22Answers: 323

    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>
    
Sign In or Register to comment.