First Commit

This commit is contained in:
2021-09-15 21:00:06 +07:00
commit 3e8392928f
319 changed files with 75599 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
class KelurahanModel extends CI_Model
{
private $_table = "tb_kelurahan";
public function getKelurahan(){
$this->db->order_by('kelurahan', 'ASC');
return $user = $this->db->get($this->_table)->result();
}
public function getKecamatanByKelurahan($kelurahan){
$this->db->where('kelurahan', $kelurahan);
return $user = $this->db->get($this->_table)->row();
}
}