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: 1Questions: 1Answers: 0
edited August 3 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: 56,851Questions: 1Answers: 9,035 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.