diff --git a/NdisPrice.php b/NdisPrice.php index 545e54b..b8c26bf 100644 --- a/NdisPrice.php +++ b/NdisPrice.php @@ -6,26 +6,19 @@ class NdisPrice{ private $html = ''; private $ndis_table; private $tos =[]; - private $current_year = 2020; public function __construct(int $year=2019) { global $wpdb; - if ( $year == "2019"){ - $now = new \DateTime(); - //$year = (int)($now->format("Y")); - } - - $this->ndis_table = $wpdb->prefix . 'acare_ndis_price'; - $sql = "SELECT * FROM {$this->ndis_table} WHERE year=$year"; //for this year + $sql = "SELECT * FROM {$this->ndis_table}"; //for this year $results = $wpdb->get_results($sql); $this->tos =[]; $html = '