Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function tampil_sementara(){
- $max = $this->db->query("SELECT MAX(id_detil)FROM detil_km");
- $this->db->join('tb_type_kendaraan t','t.id_type=d.id_type','left');
- $this->db->join('tb_kendaraan k','k.id_kendaraan=d.id_kendaraan','left');
- $this->db->where('d.status_km',0);
- $this->db->where('d.id_detil',$max);
- $query=$this->db->get('detil_km d');
- return $query;
- }
Advertisement
Add Comment
Please, Sign In to add comment