Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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!



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



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.



Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(