umkm-app/application/models/LaporanModel.php

13 lines
259 B
PHP
Raw Normal View History

2021-09-15 21:00:06 +07:00
<?php
class LaporanModel extends CI_Model
{
private $_table = "tb_laporan";
public function getLaporanCountByYear($tahun){
$this->db->where('tahun',$tahun);
return $laporan = count($this->db->get($this->_table)->result());
}
}