This works:
$minutes = new WA_MySQLi_RS(“minutes”,$derry,0);
$minutes->setQuery(“SELECT * FROM MINUTES WHERE minDate >= ‘2021’ ORDER BY minDate DESC”);
$minutes->execute();
But I want to use something like date(“Y”) instead of an actual year ‘2021’ so it changes automatically. I have tried many versions. Just need the right one. minDate is a meeting date like 2021-01-04. I want to show all meeting minutes that post in 2021. Then change >= to <= on another page to show all before 2021.
I’m using PHP 7.4.