PHP - How to pass (start and end) date value via link to show datatable

PHP - How to pass (start and end) date value via link to show datatable

kitsontamkitsontam Posts: 5Questions: 3Answers: 0
edited August 2022 in Free community support

for example when user click the link below,then show the datatable between date range.

"http://test.com/table.php?sdate=2022-07-31 08:00&edate=2022-08-01 08:00"

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    How are you generating the table - are you building in as HTML inside the table.php script? If so, just use the sdate and edate GET parameters as conditions in your SQL statement used to read from the database.

    Allan

Sign In or Register to comment.