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
kitsontam
Posts: 5Questions: 3Answers: 0
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
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