вот моя модель:
Код: Выделить всё
function get_all_tagihan(){
return $this->db->query("
SELECT * FROM tagihan
WHERE tagihan.TAGIHAN_ISDELETED=0
ORDER BY tagihan.TAGIHAN_ID;
");
}
Код: Выделить всё
public function gettagihan()
{
$this->load->model('model_tagihan');
$res = $this->model_tagihan->get_all_tagihan();
$data_tagihan['tagihan'] = $res;
$this->load->view('monitoring/kosong', $data_tagihan);
}
Код: Выделить всё
Tarif[/b][b] No. Meter Panel[/b][b] Periode[/b][b] Nama[/b][b] Alamat[/b][b] Unitup[/b][b] Jenis Tarif[/b][b] Daya[/b][b] Nominal PLN[/b][b] Batas Atas[/b][b] Hasil Audit[/b]
Подробнее здесь: https://stackoverflow.com/questions/355 ... ew-provide