I need to do a nav bar that will increment and decrement for years and for months. The incremented or decremented month or years as a result of the nav link should show in the url variable as date=yyyy-mm-dd
The page starts on a query:
WHERE DATE_FORMAT(event.datestar,'%Y%m') = DATE_FORMAT(CURRENT_DATE(),'%Y%m')
Which works. Also this page sometimes has a url varialble as:
site.php?date=yyyy-mm-dd
In the url and I would like to check on this first if possible.
Do I need to define page variables to do this?
Any help much appreciated.