datatables can't paging


Hello ,
I am using Metronic v7, and i will need to return a huge data records and need to use the server-side processing to paging it,i have ref to the below demo but it doesn't work when i change the Ajax URL to my backend php file, i am not sure what's wrong with my php file , i have compared with the return JSON and looks the same, thus, may i know if you can share with me the demo default.php to me for reference?
Thanks.

demo:
v7.29/html/demo4/dist/crud/datatables/data-sources/ajax-server-side.html

The file i need:
https://preview.keenthemes.com/metronic/theme/html/tools/preview/api/datatables/demos/default.php


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Ensure that your PHP file is configured to handle the DataTables requests correctly, including parsing the input parameters like draw, start, length, and any search criteria.

Here is the download link for the API.

https://drive.google.com/file/d/1dUgwAQ_E6pZiW9P2Ya_drNkBBVo1zYZu/view?usp=share_link

Thanks



Hi there,
Thank you very much for your great support, it works.



You're very welcome! I'm glad to hear that the support was helpful and that everything is working for you. If you have any more questions or need further assistance in the future, please don't hesitate to reach out. Have a great day!


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

React Dev Vacancy

KeenThemes is looking for a Junior React or Vue developer to build awesome apps.
Apply
keenthemes mega bundle